tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nohacks <philipfwil...@gmail.com>
Subject Re: I have a problem with Apache, Tomcat
Date Sat, 02 May 2009 18:41:53 GMT

Hi Chris,

Thanks for your reply. I have JkStripSession on and still having the issue. 

Any help is really appreciated. I have had this issues for a long time now
and it is a Huge Issue for us !! 

This is my httpd.conf file.

==================================
LoadModule jk_module /usr/lib/apache2/modules/mod_jk-1.2.27-httpd-2.2.6.so

JkStripSession On

JkMount /*.jsp loadbalancer
JkMount /*.jsf loadbalancer

# JkMount /*.jsp ajp13
# JkMount /*.jsf ajp13

JkWorkersFile workers.properties
JkShmFile     /var/log/httpd/mod_jk.shm
JkLogFile /opt/apache2log/mod_jk.log

# JkLogLevel    info

JkLogLevel    debug

JkOptions     +ForwardURIEscaped
JkOptions     +ForwardDirectories

FileETag None

ExpiresDefault "access plus 4 weeks"

# 480 weeks
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=490304000, public"
</FilesMatch>

ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000

=========== end of httpd.conf ===========




Christopher Schultz-2 wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Nohacks,
> 
> On 4/30/2009 4:18 PM, nohacks wrote:
>> You can see from my logs that apache returns a 200 for my login page then
>> returns a 404 from
>> 
>> It seems to be an issue now and then. It works for a while then it tosses
>> a
>> 404. Maybe after a timeout I really dont know...Hard to recreate. but my
>> logs are full of 404 jsessionid issues...
> 
> I can tell you how to recreate it:
> 
> 1. Log out of your application
> 2. Go to the login page
> 
> Result: your httpd logs are full of 404 errors for things like
> mystylesheet.css;jsessionid=32456789 and
> myloginimage.png;jsessionid=32456789.
> 
> The problem is that httpd thinks the ";jsesionid" is part of the path of
> the resource, instead of a parameter. You can fix this either with
> mod_rewrite (which is a bit heavy-handed) or you can use
> 
> JkStripSession On
> 
> if you are using a reasonably recent version of mod_jk.
> 
> Hope that helps,
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAkn7UTEACgkQ9CaO5/Lv0PDwwgCcCjjHgsZI6oSDizZPpPxgMoD7
> d+4An1SWaF/2Q32jyK2DiULpvPRWB4Hn
> =iKFe
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/I-have-a-problem-with-Apache%2C-Tomcat-tp23322605p23349107.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message