Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-09 Thread Martin Knoblauch
On Tue, Oct 8, 2019 at 9:02 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Martin, > > > > Sorry, I actually didn't notice the "LoadModule" in there. > > It's strange to see a LoadModule and the other configuration all >

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Martin, On 10/7/19 11:45, Martin Knoblauch wrote: > On Mon, Oct 7, 2019 at 5:10 PM Christopher Schultz < > ch...@christopherschultz.net> wrote: > >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 >> >> Martin, >> >> On 10/7/19 07:22, Martin

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-08 Thread tomcat
quot;/cb2" application to worker "cb2" # JkMount /cb2/* cb2 # # Unmount "/cb2/docs" from worker "cb2" to allow static content # beeing served by apache. Same for "/cb2/cgi-bin" # JkUnMount /cb2/docs/* cb2 So we JkUnMount the "/cb2

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-08 Thread Martin Knoblauch
setup. Nothing interesting to see there. So I am still confused here. Based on this, from a previous post : > quote > # > # CB2 - Portal > # > # Mount the "/cb2" application to worker "cb2" > # > JkMount /cb2/* cb2 > # > # Unmount "/cb2/do

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-07 Thread tomcat
receives the same response, etc. Until the (smart) browser realises that it is always requesting and receiving the same thing and calls quits. What you are showing above as log, is only the httpd access log. Do you have an access log enabled in tomcat, and do you see these same accesses

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-07 Thread Martin Knoblauch
On Mon, Oct 7, 2019 at 5:10 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Martin, > > On 10/7/19 07:22, Martin Knoblauch wrote: > > The mod_jk configuration basically looks like: > > > > LoadModule jk_module

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Martin, On 10/7/19 07:22, Martin Knoblauch wrote: > The mod_jk configuration basically looks like: > > LoadModule jk_module modules/mod_jk.so > > JkWorkersFile "conf/cb2/workers.properties" JkShmFile > "logs/jk-runtime-status" JkLogFile

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-07 Thread Martin Knoblauch
On Mon, Oct 7, 2019 at 3:31 PM Konstantin Kolinko wrote: > пн, 7 окт. 2019 г. в 15:44, Martin Knoblauch : > > > > Hi Konstantin, > > > > On Mon, Oct 7, 2019 at 2:36 PM Konstantin Kolinko < > knst.koli...@gmail.com> > > wrote: > > > > > > 2. For Tomcat to issue a redirect, the "docs" directory

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-07 Thread Martin Knoblauch
; > >>JkShmFile "logs/jk-runtime-status" > >>JkLogFile "logs/mod_jk.log" > >>JkLogLevel info > >>JkWatchdogInterval 60 > >> > >> > >> And then later inside a virtual host: &g

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-07 Thread Konstantin Kolinko
пн, 7 окт. 2019 г. в 15:44, Martin Knoblauch : > > Hi Konstantin, > > On Mon, Oct 7, 2019 at 2:36 PM Konstantin Kolinko > wrote: > > > 2. For Tomcat to issue a redirect, the "docs" directory must be > > present in your web application. It can be empty, but it must be > > present. (If there is

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-07 Thread Martin Knoblauch
t;logs/mod_jk.log" > > JkLogLevel info > > JkWatchdogInterval 60 > > > > > > And then later inside a virtual host: > > > > # > > # CB2 - Portal > > # > > # Mount the "/cb2" application to worker "cb2" > > # > >

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-07 Thread tomcat
JkShmFile "logs/jk-runtime-status" JkLogFile "logs/mod_jk.log" JkLogLevel info JkWatchdogInterval 60 And then later inside a virtual host: # # CB2 - Portal # # Mount the "/cb2" application to worker "cb2" # JkMount /cb2/* cb2 # # Unmount &qu

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-07 Thread Konstantin Kolinko
ct/2019:12:30:47 +0200] [2 ms] 160.46.219.110 - "POST /cb2/docs > HTTP/1.1" s:302 l:- S:TLSv1.2 C:ECDHE-RSA-AES256-GCM-SHA384 > [07/Oct/2019:12:30:47 +0200] [20 ms] 160.46.219.110 - "GET /cb2/docs/ > HTTP/1.1" s:200 l:6367 S:TLSv1.2 C:ECDHE-RSA-AES256-GCM-SHA384 &g

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-07 Thread Mark Thomas
; [07/Oct/2019:12:30:47 +0200] [2 ms] 160.46.219.110 - "POST /cb2/docs > HTTP/1.1" s:302 l:- S:TLSv1.2 C:ECDHE-RSA-AES256-GCM-SHA384 > [07/Oct/2019:12:30:47 +0200] [20 ms] 160.46.219.110 - "GET /cb2/docs/ > HTTP/1.1" s:200 l:6367 S:TLSv1.2 C:ECDHE-RSA-AES256-GCM-SHA384 &g

Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-07 Thread Martin Knoblauch
l info JkWatchdogInterval 60 And then later inside a virtual host: # # CB2 - Portal # # Mount the "/cb2" application to worker "cb2" # JkMount /cb2/* cb2 # # Unmount "/cb2/docs" from worker "cb2" to allow static content # beeing served by apache. Sa

configuring login for static content and Servlets

2015-10-05 Thread Bill Ross
Is it possible to set up a site so that you have to log in to access the site at all, either the static content or the servlet interface? I have in mind 10-100 users. It seems a simple setup like .htaccess (httpd only?) would be perfect if it existed and covered static and servlet

RE: configuring login for static content and Servlets

2015-10-05 Thread Caldarale, Charles R
> From: Bill Ross [mailto:r...@cgl.ucsf.edu] > Subject: configuring login for static content and Servlets > Is it possible to set up a site so that you have to log in to access the site > at all, > either the static content or the servlet interface? Read the "Specifying

Re: configuring login for static content and Servlets

2015-10-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Bill, On 10/5/15 3:21 PM, Bill Ross wrote: > Is it possible to set up a site so that you have to log in to > access the site at all, either the static content or the servlet > interface? I have in mind 10-100 users. It seems a simple set

(almost) identical webapps behave differently in serving static content

2013-02-11 Thread Thierens, Bart
I have 2 (almost) identical webapps. One is deployed to Tomcat 6.0.29 and the other is deployed to 6.0.33. The first one has no problems resolving static content files using Spring, the second one (on 6.0.33) has issues. For the full info, see: http://stackoverflow.com/questions/14812919

Re: (almost) identical webapps behave differently in serving static content

2013-02-11 Thread Konstantin Kolinko
2013/2/11 Thierens, Bart bart.thier...@xerox.com: I have 2 (almost) identical webapps. One is deployed to Tomcat 6.0.29 and the other is deployed to 6.0.33. The first one has no problems resolving static content files using Spring, the second one (on 6.0.33) has issues. For the full info

RE: (almost) identical webapps behave differently in serving static content

2013-02-11 Thread Thierens, Bart
Subject: Re: (almost) identical webapps behave differently in serving static content 2013/2/11 Thierens, Bart bart.thier...@xerox.com: I have 2 (almost) identical webapps. One is deployed to Tomcat 6.0.29 and the other is deployed to 6.0.33. The first one has no problems resolving static

Re: (almost) identical webapps behave differently in serving static content

2013-02-11 Thread Konstantin Kolinko
2013/2/11 Thierens, Bart bart.thier...@xerox.com: The files are located under $WEBAPP$/styles. Move them into $WEBAPP$/static/styles. As I said on StackOverflow: the webapps are identical (except for database connection and tomcat version). My question for you is: what changed between

RE: Help Linking Static Content In a WebApp before and after (6.0.30.x)

2012-06-06 Thread Morgan, Russel
: Tuesday, June 05, 2012 5:47 PM To: Tomcat Users List Subject: Re: Help Linking Static Content In a WebApp before and after (6.0.30.x) -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Russel, On 6/5/12 8:38 PM, Morgan, Russel wrote: I was initially pretty excited about the URL redirect idea, but after

Re: Help Linking Static Content In a WebApp before and after (6.0.30.x)

2012-06-06 Thread Konstantin Kolinko
2012/6/6 Morgan, Russel russel.mor...@disney.com: What I don't know how to do is use that redirect filter/rewrite to change the url based on the version of tomcat, which it seems I need to do, since the container pathing logic changed across versions. Do not use your trick of mapping

RE: Help Linking Static Content In a WebApp before and after (6.0.30.x)

2012-06-06 Thread Morgan, Russel
: Wednesday, June 06, 2012 4:49 AM To: Tomcat Users List Subject: Re: Help Linking Static Content In a WebApp before and after (6.0.30.x) 2012/6/6 Morgan, Russel russel.mor...@disney.com: What I don't know how to do is use that redirect filter/rewrite to change the url based on the version of tomcat

Re: Help Linking Static Content In a WebApp before and after (6.0.30.x)

2012-06-06 Thread Christopher Schultz
of static content that is outside of the webapp's docBase that you want to serve from within its URL space? Any possibility that you could upgrade to Tomcat 7 which has aliases which can do this? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http

RE: Help Linking Static Content In a WebApp before and after (6.0.30.x)

2012-06-06 Thread Morgan, Russel
To: Tomcat Users List Subject: Re: Help Linking Static Content In a WebApp before and after (6.0.30.x) -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Russel, On 6/6/12 8:45 AM, Morgan, Russel wrote: So if I bundle the default servlet with my application and then configure it to run

Help Linking Static Content In a WebApp before and after (6.0.30.x)

2012-06-05 Thread Morgan, Russel
Tomcat Users: Has anyone found a graceful way to handle static content linking that works= both pre and post the the following change? https://issues.apache.org/bugzilla/show_bug.cgi?id=3D50026 We have quite a few customers on earlier versions of Tomcat 6 as well as ne= w customers

Re: Help Linking Static Content In a WebApp before and after (6.0.30.x)

2012-06-05 Thread Konstantin Kolinko
2012/6/5 Morgan, Russel russel.mor...@disney.com: Tomcat Users: Has anyone found a graceful way to handle static content linking that works=   both pre and post the the following change? https://issues.apache.org/bugzilla/show_bug.cgi?id=3D50026 You mean https://issues.apache.org/bugzilla

RE: Help Linking Static Content In a WebApp before and after (6.0.30.x)

2012-06-05 Thread Morgan, Russel
Thanks yes that is the change that caused this issue with how we use static content. I am not sure how I mangled my formatting but I went through and cleaned it up, I hope that helps readability. Russ Issue formatting recap below: = Tomcat Users: Has anyone found

Re: Help Linking Static Content In a WebApp before and after (6.0.30.x)

2012-06-05 Thread Konstantin Kolinko
2012/6/5 Morgan, Russel russel.mor...@disney.com: Thanks yes that is the change that caused this issue with how we use static content. I am not sure how I mangled my formatting but I went through and cleaned it up, I hope that helps readability. Russ Issue formatting recap below

RE: Help Linking Static Content In a WebApp before and after (6.0.30.x)

2012-06-05 Thread Morgan, Russel
I was optimistic on a first look into that URL-Rewriter -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Tuesday, June 05, 2012 1:05 PM To: Tomcat Users List Subject: Re: Help Linking Static Content In a WebApp before and after (6.0.30.x) 2012/6/5

RE: Help Linking Static Content In a WebApp before and after (6.0.30.x)

2012-06-05 Thread Morgan, Russel
-Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Tuesday, June 05, 2012 1:05 PM To: Tomcat Users List Subject: Re: Help Linking Static Content In a WebApp before and after (6.0.30.x) 2012/6/5 Morgan, Russel russel.mor...@disney.com: Thanks yes

Re: Help Linking Static Content In a WebApp before and after (6.0.30.x)

2012-06-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Russel, On 6/5/12 8:38 PM, Morgan, Russel wrote: I was initially pretty excited about the URL redirect idea, but after some testing, it has led me back to the same result. I can make it work with redirects on either version of tomcat. Pre and

Re: Serving static content using embedded tomcat 7

2012-02-09 Thread Pid
On 09/02/2012 06:19, sanu wrote: Thanks for your reply. I have a global web.xml, where the DefaultServlet is mapped. The difference I see is that my static resources are not in the same directory as the host's appBase. Could this be the problem ? How can the static content be served

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread Pid
On 08/02/2012 07:47, sanu wrote: Hello, I am working on embedding tomcat 7 into our application. We have a number of web apps and the static content is located in a different directory, common to all webapps. Why not just serve the static content as it's own application? I am not finding

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread sanu
Thank you. I just did that. Here's what I have : StandardContext context = (StandardContext) tomcat.addContext(null, , path to the static resource directory); This doesn't seem to work. -- View this message in context: http://tomcat.10.n6.nabble.com/Serving-static-content

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread Mark Thomas
On 08/02/2012 08:40, sanu wrote: Thank you. I just did that. Here's what I have : StandardContext context = (StandardContext) tomcat.addContext(null, , path to the static resource directory); This doesn't seem to work. You haven't told us: - exact Apache Tomcat

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread sanu
, I am unable to access the static content directly as well. Gives me a 404. Thanks. -- View this message in context: http://tomcat.10.n6.nabble.com/Serving-static-content-using-embedded-tomcat-7-tp4375155p4375303.html Sent from the Tomcat - User mailing list archive at Nabble.com

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread André Warnier
this context but this is not. You are not really telling us anything. In addition to not being able to access the resources from any other context, I am unable to access the static content directly as well. Gives me a 404. Re-read Mark's previous post, and read the document he pointed you

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread Konstantin Kolinko
2012/2/8 sanu write2s...@gmail.com: Thank you. I just did that. Here's what I have : StandardContext context = (StandardContext)                tomcat.addContext(null, , path to the static resource directory); This doesn't seem to work. (...) I would guess that you have not created nor

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread sanu
Thanks for your reply. I have a global web.xml, where the DefaultServlet is mapped. The difference I see is that my static resources are not in the same directory as the host's appBase. Could this be the problem ? How can the static content be served in such a case ? -- View this message

Serving static content using embedded tomcat 7

2012-02-07 Thread sanu
Hello, I am working on embedding tomcat 7 into our application. We have a number of web apps and the static content is located in a different directory, common to all webapps. I am not finding a way to serve this static content. Could somebody please help me out. Thanks, Sandhya -- View

Re: Caching of protected static content with Expires header: Expires Thu, 01 Jan 1970 03:00:00 EET?

2012-01-20 Thread Francis GALIEGUE
On Fri, Jan 20, 2012 at 14:03, Violeta Georgieva violet...@apache.org wrote: Hi, If the static content is not protected then by default it is cached and the corresponding headers are set - see screenshot1 screenshot2. but when I put it as protected content the following headers are set

Re: Caching of protected static content with Expires header: Expires Thu, 01 Jan 1970 03:00:00 EET?

2012-01-20 Thread markt
Violeta Georgieva violet...@apache.org wrote: Hi, If the static content is not protected then by default it is cached and the corresponding headers are set - see screenshot1 screenshot2. but when I put it as protected content the following headers are set: Cache-control:private and Expires

Re: Caching of protected static content with Expires header: Expires Thu, 01 Jan 1970 03:00:00 EET?

2012-01-20 Thread Francis GALIEGUE
On Fri, Jan 20, 2012 at 15:05, ma...@apache.org wrote: Violeta Georgieva violet...@apache.org wrote: [...] My question is why the expires header is set with this value? Doesn't this prevent caching? Yes. That is the point. But there is no need for an expires header if you don't want

Re: Caching of protected static content with Expires header: Expires Thu, 01 Jan 1970 03:00:00 EET?

2012-01-20 Thread Violeta Georgieva
And if I want to cache a protected resource only locally what I should do? Thanks 2012/1/20 ma...@apache.org Violeta Georgieva violet...@apache.org wrote: Hi, If the static content is not protected then by default it is cached and the corresponding headers are set - see screenshot1

Odp.: static content not served for non-root apps via mod_jk

2012-01-14 Thread Mikołaj Rydzewski
Have you measured that Tomcat is too slow for you to serve static content? If not - serve everything from Tomcat itself and enjoy simple configuration;-) -- Sent from my wireless G705 device - To unsubscribe, e-mail: users

Re: static content not served for non-root apps via mod_jk

2012-01-14 Thread André Warnier
Eric P wrote: I remember now why static content works for my ROOT app. I have Apache aliases set-up pointing to specific system directories for all static content. For example, I have all images for the ROOT app aliased here. Alias /img /opt/tomcat7/webapps/ROOT/img Directory /opt/tomcat7

Re: static content not served for non-root apps via mod_jk

2012-01-14 Thread Rainer Jung
On 14.01.2012 04:17, Eric P wrote: Hi all, I'm having trouble getting Apache to serve static content (jpg, css, js, etc.) for Tomcat apps via mod_jk for any application except the ROOT Tomcat app. The ROOT app shows static content just fine. I have the following Apache settings attempting

Re: static content not served for non-root apps via mod_jk

2012-01-14 Thread Pid
On 14/01/2012 03:52, Eric P wrote: I remember now why static content works for my ROOT app. I have Apache aliases set-up pointing to specific system directories for all static content. For example, I have all images for the ROOT app aliased here. Alias /img /opt/tomcat7/webapps/ROOT/img

static content not served for non-root apps via mod_jk

2012-01-13 Thread Eric P
Hi all, I'm having trouble getting Apache to serve static content (jpg, css, js, etc.) for Tomcat apps via mod_jk for any application except the ROOT Tomcat app. The ROOT app shows static content just fine. I have the following Apache settings attempting to point *all* requests to Tomcat

Re: static content not served for non-root apps via mod_jk

2012-01-13 Thread Eric P
I remember now why static content works for my ROOT app. I have Apache aliases set-up pointing to specific system directories for all static content. For example, I have all images for the ROOT app aliased here. Alias /img /opt/tomcat7/webapps/ROOT/img Directory /opt/tomcat7/webapps/ROOT/img

Static content not displaying

2011-06-15 Thread Flaherty, Brennen F
we have an application that works as expected on tomcat version 6.0.29 on a windows server . If I try to copy the war to a machine running version 6.0.32 none of the static content will display. If I copy the war file to a different machine with version 6.0.29 installed the static content

Re: Static content not displaying

2011-06-15 Thread Konstantin Kolinko
2011/6/15 Flaherty, Brennen F flahert...@upmc.edu: we have an application that works as expected on tomcat version 6.0.29 on a windows server . If I try to copy the war to a machine running version 6.0.32 none of the static content will display. If I copy the war file to a different machine

Re: Static content not displaying

2011-06-15 Thread Pid
On 15/06/2011 13:41, Flaherty, Brennen F wrote: we have an application that works as expected on tomcat version 6.0.29 on a windows server . If I try to copy the war to a machine running version 6.0.32 none of the static content will display. If I copy the war file to a different machine

Setting the expiry for static content served by Tomcat 6.0.32

2011-02-23 Thread Reinwald Warapen
Hey, Is there any way I can specify the expiry of static content (js,css etc) by some setting in the context.xml or sever.xml .Or the only way to achieve this is to write my own filter which will add the appropriate header. Thanks

Re: Setting the expiry for static content served by Tomcat 6.0.32

2011-02-23 Thread chris derham
Is there any way I can specify the expiry of static content (js,css etc) by some setting in the context.xml or sever.xml .Or the only way to achieve this is to write my own filter which will add the appropriate header. We used this http://www.vineetmanohar.com/2010/10/java-expiry-date

Re: Setting the expiry for static content served by Tomcat 6.0.32

2011-02-23 Thread Martin Grotzke
You might serve static resources with Apache/nginx/haproxy. This has also the advantage that you save threads in tomcat. Cheers, Martin Am 23.02.2011 14:47 schrieb Reinwald Warapen reinwal...@directi.com: Hey, Is there any way I can specify the expiry of static content (js,css etc) by some

Can't disable caching of static content

2010-10-28 Thread Alexander Rosemann
Hi, For some reason Tomcat keeps caching my static content even though I've set the cachingAllowed attribute to false. I've set the following attributes in %CATALINA_HOME%\conf\Catalina\localhost\myContext.xml: Context path=/myContext cachingAllowed=false reloadable=true crossContext=false

Re: Can't disable caching of static content

2010-10-28 Thread Konstantin Kolinko
2010/10/28 Alexander Rosemann alexander.rosem...@gmail.com: Hi, For some reason Tomcat keeps caching my static content even though I've set the cachingAllowed attribute to false. I've set the following attributes in %CATALINA_HOME%\conf\Catalina\localhost\myContext.xml: Context path

Re: Can't disable caching of static content

2010-10-28 Thread Alexander Rosemann
caching my static content even though I've set the cachingAllowed attribute to false. I've set the following attributes in %CATALINA_HOME%\conf\Catalina\localhost\myContext.xml: Context path=/myContext cachingAllowed=false reloadable=true crossContext=false antiJARLocking=true antiResourceLocking

Re: Can't disable caching of static content

2010-10-28 Thread Alexander Rosemann
What are your evidences? Note that, because of those anti** options in your Context, your content is copied to some temporary directory and is served from there and not from webapp/appname. Best regards, Konstantin Kolinko Hi Konstantin, using *only* the cachingAllowed attribute is finally

Re: Caching of static content

2010-08-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 8/2/2010 2:06 PM, john.rana...@thomsonreuters.com wrote: Can someone point me to the documentation on how to handle caching of static content? Images and static HTML documents are all being returned without cach-control response headers

RE: Caching of static content

2010-08-04 Thread john.ranaudo
Uh..thanks..it was not a good day when I asked this question. My apologies :) -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, August 04, 2010 10:03 AM To: Tomcat Users List Subject: Re: Caching of static content -BEGIN PGP SIGNED

Caching of static content

2010-08-02 Thread john.ranaudo
Can someone point me to the documentation on how to handle caching of static content? Images and static HTML documents are all being returned without cach-control response headers but I am unsure how to set these values. Thus the files are being retrieved each and every time. Also, how

Re: AJP13 shows static content only

2010-02-19 Thread Pid
On 19/02/2010 07:09, petr kalafatič wrote: Hi, I have problem to configure apache and tomcat (ajp13). I have several virtual hosts (php,jsp). PHP pages are ok, but jsp shows static (html) content only. Someone encountered this problem? Yes, people who incorrectly configure the Apache document

AJP13 shows static content only

2010-02-18 Thread petr kalafatič
Hi, I have problem to configure apache and tomcat (ajp13). I have several virtual hosts (php,jsp). PHP pages are ok, but jsp shows static (html) content only. Someone encountered this problem? Any suggestion ? Thanks, Petr (apache 2.2, tomcat 6, win xp)

Expiration date on static content?

2009-10-06 Thread pieroxy
Hello, I do have a tomcat working for several years on my production servers, and I am trying to optimize a thing or two. I already use the gzip compression, and this works very well. However, I noticed that all my static content is served with no expiration date at all. This doesn't tell

RE: Expiration date on static content?

2009-10-06 Thread Jeffrey Janner
http://onjava.com/pub/a/onjava/2004/03/03/filters.html -Original Message- From: pieroxy [mailto:pier...@gmail.com] Sent: Tuesday, October 06, 2009 12:03 PM To: Tomcat Users List Subject: Expiration date on static content? Hello, I do have a tomcat working for several years on my

Re: Caching of static content

2009-06-11 Thread jraanamo
- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/Caching-of-static-content-tp23614901p23975925.html Sent from

Re: Caching of static content

2009-06-02 Thread Christopher Schultz
that if the uri was such that TC would interpret it as static content like /foobar.html - I would get a 404 on the first request. If the uri refers to more dynamic content such as /foobar.jsp - you don't get a 404. Let's see your code... public void doFilter(ServletRequest request

Re: Apache httpd vs Tomcat static content performance [more results]

2009-05-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 5/25/2009 1:30 PM, Caldarale, Charles R wrote: From: Caldarale, Charles R Subject: RE: Apache httpd vs Tomcat static content performance [more results] There are some extracts from the 2007 O'Reilly Tomcat book about benchmarking

RE: Apache httpd vs Tomcat static content performance [more results]

2009-05-25 Thread Caldarale, Charles R
From: Caldarale, Charles R Subject: RE: Apache httpd vs Tomcat static content performance [more results] There are some extracts from the 2007 O'Reilly Tomcat book about benchmarking on somewhat newer hardware than Chris is using: http://www.devshed.com/c/b/BrainDump/ The interesting

Re: Apache httpd vs Tomcat static content performance [more results]

2009-05-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, The message below was garbled when sent. Fortunately, it ended up being preserved correctly in my sent message folder. Here it is. - -chris - Original Message Subject: Re: Apache httpd vs Tomcat static content performance

Re: Apache httpd vs Tomcat static content performance [more results]

2009-05-23 Thread Christopher Schultz
binfqTJI0hlYT.bin Description: PGP/MIME version identification

Re: Apache httpd vs Tomcat static content performance [more results]

2009-05-23 Thread André Warnier
Christopher Schultz wrote: Chris, there's something wrong with this post. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

RE: Apache httpd vs Tomcat static content performance [more results]

2009-05-23 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Apache httpd vs Tomcat static content performance [more results] Chris, there's something wrong with this post. You have to use lemon juice and a heat source to read it... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL

Re: Apache httpd vs Tomcat static content performance [some results]

2009-05-20 Thread André Warnier
Actually, I was thinking more of disabling the AccessLog in httpd, to see how much impact that had. (That's also less additional tests to run ;-)) Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 5/19/2009 2:28 PM, André Warnier wrote: Christopher Schultz

Caching of static content

2009-05-19 Thread Jukka Raanamo
Hi, I was trying to create a Filter that generates the some content as files (if required) into the file system and lets the default servlet handle the rest. However I noticed that if the uri was such that TC would interpret it as static content like /foobar.html - I would get a 404 on the first

Re: Apache httpd vs Tomcat static content performance [some results]

2009-05-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, So, I have some data from last night. It's about what you'd expect, except that the NIO+sendfile connector test failed most of the time: the client got something like apr_connect: Connection reset by peer when it tried to connect to the server.

Re: Apache httpd vs Tomcat static content performance [some results]

2009-05-19 Thread Gregor Schneider
I'm a bit puzzled: In your previous tests it looked like that Apache is outperforming (ok, not really) Coyote w APR when the files grew bigger. In your last results I can't see that pattern - actually, I don't see /any/ pattern... Any idea how come? Cheers Gregor -- just because your

RE: Apache httpd vs Tomcat static content performance [some results]

2009-05-19 Thread Caldarale, Charles R
From: Gregor Schneider [mailto:rc4...@googlemail.com] Subject: Re: Apache httpd vs Tomcat static content performance [some results] In your last results I can't see that pattern - actually, I don't see /any/ pattern... Quantum mechanics? - Chuck THIS COMMUNICATION MAY CONTAIN

RE: Apache httpd vs Tomcat static content performance [some results]

2009-05-19 Thread Caldarale, Charles R
From: Caldarale, Charles R Subject: RE: Apache httpd vs Tomcat static content performance [some results] In your last results I can't see that pattern - actually, I don't see /any/ pattern... Quantum mechanics? More seriously, we may be seeing artifacts of various buffering sizes

Re: Apache httpd vs Tomcat static content performance [some results]

2009-05-19 Thread André Warnier
Christopher Schultz wrote: ... Thanks for the work. At least it may put to rest some gross misconceptions. Now just a question : in the httpd tests, did you have an AccessLog enabled ? I would imagine you did not have an AccessLogValve enabled in Tomcat, and I wonder if it makes any

Re: Apache httpd vs Tomcat static content performance [some results]

2009-05-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, On 5/19/2009 12:59 PM, Gregor Schneider wrote: I'm a bit puzzled: In your previous tests it looked like that Apache is outperforming (ok, not really) Coyote w APR when the files grew bigger. I disagree with that conclusion. My

Re: Apache httpd vs Tomcat static content performance [some results]

2009-05-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 5/19/2009 2:28 PM, André Warnier wrote: Christopher Schultz wrote: ... Thanks for the work. At least it may put to rest some gross misconceptions. Now just a question : in the httpd tests, did you have an AccessLog enabled ? I

Apache httpd vs Tomcat static content performance

2009-05-18 Thread Christopher Schultz
the data by skipping 3 of the tests. 4. Is transfer rate the best data to use? I suppose that depends on what I want to demonstrate. Since we get questions on this list like which is faster for static content? I figured that one of two things would be appropriate: the transfer rate

RE: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Apache httpd vs Tomcat static content performance I will be comparing an out-of-the-box prefork MPM httpd 2.2.10 configuration against an out-of-the-box Tomcat 5.5.26 Coyote, APR, and APR without sendfile

RE: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Peter Crowther
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 1. Is the number of requests (100, sufficient? It seems to take forever on this machine... my Coyote tests took longer than overnight. You want enough tests that they're sensitive to statistically significant

RE: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Martin Gainty
:06 -0400 From: ch...@christopherschultz.net To: users@tomcat.apache.org Subject: Apache httpd vs Tomcat static content performance -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Last week, I decided to actually run my own performance measurements. Before I waste a lot of time

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Christopher Schultz
static content). I can easily get memory timing information, and I suspect my memory timing will significantly beat the throughput of the TCP stack (shared memory be damned). I can also benchmark my disk I suppose. Since I already have the transfer rates for the HTTP responses, I can simply see

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 5/18/2009 10:47 AM, Martin Gainty wrote: the apache httpd [crowd] may cry foul because you are testing with a prefork config instead of worker assuming you can scare up another processor I'm happy to re-run the tests using a worker MPM

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/18/2009 11:23 AM, Christopher Schultz wrote: Chuck, Er, Peter. Sorry 'bout that. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

RE: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Peter Crowther
message) would cache the file! Since this is a relatively old server (1500MHz 32-bit AMD Athlon), I'm surely being limited by just about everything except memory capacity (it doesn't take much memory to serve static content). I can easily get memory timing information, and I suspect my memory

RE: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Robin Wilson
Entertainment, Inc. WORK: 512-623-5913 CELL: 512-426-3929 www.KingsIsle.com -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, May 18, 2009 10:24 AM To: Tomcat Users List Subject: Re: Apache httpd vs Tomcat static content performance -BEGIN

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 5/18/2009 10:32 AM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Apache httpd vs Tomcat static content performance I will be comparing an out-of-the-box prefork MPM httpd 2.2.10

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 5/18/2009 11:37 AM, Peter Crowther wrote: I suppose I could gauge each test so it would take (roughly) a certain amount of time (say, 10 minutes). At least then I'd know how long the entire battery would take :) I think that's

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, On 5/18/2009 11:35 AM, Robin Wilson wrote: I'm curious by your comment that Coyote/APR is performing on par with httpd, from the results in your first message I saw it was a pretty big difference. Or are you saying that wasn't using APR?

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread David kerber
Peter Crowther wrote: ... As a rough first cut, vmstat 5 and watch the numbers ;-). iostat too, if you can. If CPU isn't pegged at 100% and the disk isn't at full capacity, that's an interesting result as it implies the box has spare capacity and there's contention elsewhere - often lock

  1   2   >