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 > togeth

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 Knoblau

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-08 Thread tomcat
# # Mount the "/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

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 th

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 modules/mod_jk.so

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 "logs/mod_j

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 mus

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 none

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 > &

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

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

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

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. Is this

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

2013-02-11 Thread Konstantin Kolinko
2013/2/11 Thierens, Bart : > 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 version 6.0.29 and 6.

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

2013-02-11 Thread Thierens, Bart
Users List Subject: Re: (almost) identical webapps behave differently in serving static content 2013/2/11 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

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

2013-02-11 Thread Konstantin Kolinko
2013/2/11 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 inf

(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: Help Linking Static Content In a WebApp before and after (6.0.30.x)

2012-06-06 Thread Morgan, Russel
om: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, June 06, 2012 6:30 AM 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:

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

2012-06-06 Thread Christopher Schultz
I think I've gotten lost... what are you actually trying to accomplish, here? Do you have a bunch 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" wh

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

2012-06-06 Thread Morgan, Russel
Again Russ -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: 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 : > > What I don't know h

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 : > > 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 DefaultServlet to wrong pat

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

2012-06-06 Thread Morgan, Russel
@christopherschultz.net] Sent: 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

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 a

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

2012-06-05 Thread Morgan, Russel
Russel Morgan -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 : > Thanks yes that is the chang

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 Konstantin Kolinko
2012/6/5 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 > > >

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 a

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 : > 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/

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: 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 > s

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 messa

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread Konstantin Kolinko
2012/2/8 sanu : > Thank you. > > I just did that. Here's what I have : > > StandardContext context = (StandardContext) >                tomcat.addContext(null, "", directory"); > > This doesn't seem to work. > >(...) I would guess that you have not created nor mapped the DefaultServlet instance

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 y

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 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, "", directory"); > > This doesn't seem to work. You haven't told us: - exact Apache Tomcat version - what the path

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, "", http://tomcat.10.n6.nabble.com/Serving-static-content-using-embedded-tomcat-7-tp4375155p4375268.html Sent from the Tomcat - User mailing

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 appli

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 this

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 > Violeta Georgieva wrote: > > >Hi, > > > >If the static content is not protected then by default it is cached and > >the > >corresponding headers are set - see scre

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, wrote: > Violeta Georgieva 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 caching. It is enough to "Cache-c

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 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 an

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 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 heade

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/to

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 attem

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 Options Indexes

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-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 Options Indexes MultiViews

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 Tomca

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 &g

Re: Static content not displaying

2011-06-15 Thread Konstantin Kolinko
2011/6/15 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

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: 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" : Hey, Is there any way I can specify the expiry of static content (js,css etc) by some sett

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/j

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: 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/. Best regards, Konstantin Kolinko Hi Konstantin, using *only* the cachingAllowed attribute is finally working. I

Re: Can't disable caching of static content

2010-10-28 Thread Alexander Rosemann
I simply changed a static HTML file. I haven't tried disabling all the other options though. Thanks for the hint. On Thu, Oct 28, 2010 at 11:05 AM, Konstantin Kolinko wrote: > 2010/10/28 Alexander Rosemann : >> Hi, >> >> For some reason Tomcat keeps caching my static co

Re: Can't disable caching of static content

2010-10-28 Thread Konstantin Kolinko
2010/10/28 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: > > cros

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: crossContext="false" antiJARLocking="true" antiRe

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

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

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 to

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) --

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

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

Re: Caching of static content

2009-06-10 Thread jraanamo
t: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkolXksACgkQ9CaO5/Lv0PBSKgCgimJQlCRi6eab/xsEfVE/3GrC > OQMAn2wBeSJzFWdJEL0nw+oG/IyZsO5J > =M+P4 > -END PGP SIGNATURE- > > --

Re: Caching of static content

2009-06-02 Thread Christopher Schultz
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 request. > If the uri refers to more dynamic content such as /foobar.jsp - you don't > get a 404. Let's see your code... > pu

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&

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-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/ T

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

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 Christopher Schultz
binfqTJI0hlYT.bin Description: PGP/MIME version identification

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 w

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 ?

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 inte

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 practical

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

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 TH

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 parano

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.

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

Re: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 5/18/2009 4:56 PM, André Warnier wrote: > You say you ran each test for 10 seconds, so I guess the numbers are not > the seconds it took, so what are they ? They are transfer Rate (KiB/sec) as measured by ApacheBench. > I also wonder about

Re: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread André Warnier
Chris, what do the numbers represent ? You say you ran each test for 10 seconds, so I guess the numbers are not the seconds it took, so what are they ? I also wonder about the numbers, for example in the first column (httpd). They seem to grow more or less lineraly as the file size increase

Re: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 5/18/2009 4:40 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Apache httpd vs Tomcat static content performance >> [Revised/Updated] >> >&

RE: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Apache httpd vs Tomcat static content performance > [Revised/Updated] > > After reading some of your feedback, I've decided to make some changes: > > - - Using TC 6.0.18 exclusively

RE: Apache httpd vs Tomcat static content performance[Revised/Updated]

2009-05-18 Thread Caldarale, Charles R
> From: Robin Wilson [mailto:rwil...@kingsisle.com] > Subject: RE: Apache httpd vs Tomcat static content > performance[Revised/Updated] > > I don't know if I'd call a 4% difference a "dead heat"... Given the likely variability of any measurements taken in an 8

Re: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Peter Lin
le 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 3:25 PM > To: Tomcat Users List > Subject: Re: Apach

RE: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Robin Wilson
Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, May 18, 2009 3:25 PM To: Tomcat Users List Subject: Re: Apache httpd vs Tomcat static content performance [Revised/Updated] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, On 5/18/2009 4

Re: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, On 5/18/2009 4:11 PM, Robin Wilson wrote: > Thanks! This information isn't useless... Of course, more detailed > results, after a longer test run would be more conclusive. Yup, that's the plan. Tonight, I'll be running with an 8 minute test to

RE: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Robin Wilson
to:ch...@christopherschultz.net] Sent: Monday, May 18, 2009 2:31 PM To: Tomcat Users List Subject: Re: Apache httpd vs Tomcat static content performance [Revised/Updated] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, After reading some of your feedback, I've decided to make some changes: -

Re: Apache httpd vs Tomcat static content performance [Revised/Updated]

2009-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, After reading some of your feedback, I've decided to make some changes: - - Using TC 6.0.18 exclusively instead of 5.5 - - Using tcnative 1.1.16 instead of 1.1.12 - - Using httpd 2.2.11 instead of 2.2.10 - - Running tests for a certain amount of

Re: Apache httpd vs Tomcat static content performance

2009-05-18 Thread Dillon Sellars
01060/chapter/ch04.pdf - a benchmark with smaller files and concurrent users. This benchmark has the # of worker threads match the # of concurrent users. But I've seen benchmarks where NIO / APR beat out the JIO connector when using fewer threads than the # of concurrent requests - APR / NIO have

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 co

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?

  1   2   >