tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44215] - jkunmount causes apache to throw permission denied error
Date Mon, 14 Jan 2008 19:10:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44215>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44215


yuelu@stanford.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




------- Additional Comments From yuelu@stanford.edu  2008-01-14 11:10 -------
Thanks for your response.  The image files and jsp files are both under the
/usr/share/tomcat5/webapps/selfservice directory.  For performance improvement,
we want to serve the static files directly from apache, but jsp files from
tomcat.  That's why we need to have JkAutoAlias /usr/share/tomcat5/webapps in
the conf file.

Here is what we see:
We request the URL http://www.examples.com/selfservice/images/welcome.gif, but
we got permission denied error:

*******************************************************************************
[Mon Jan 14 10:50:01 2008] [notice] Apache/2.0.52 (Red Hat) configured --
resuming normal operations
[Mon Jan 14 10:50:39 2008] [error] [client 171.64.19.235] (13)Permission denied:
access to /selfservice/images/welcome.gif denied
*******************************************************************************  

Note there is no welcome.gif file in
/usr/share/tomcat5/webapps/selfservice/image (we removed it), but there is one
in /var/www/html/selfservice/images.  The file permission on
/var/www/html/selfservice/images is OK because if we use mod_rewrite the files
are served correctly.

We added "JkMountCopy On" in virtual host directive as you suggested, but it
made no difference.

Here is the current conf file:

*************************************************
DocumentRoot /var/www/html

# load mod_jk
#LoadModule jk_module modules/mod_jk.so
JkWorkersFile "/etc/httpd/workers.properties"
JkLogFile "/var/log/httpd/mod_jk.log"
JkLogLevel debug
JkAutoAlias /usr/share/tomcat5/webapps
JkMount /selfservice/* worker1
JkUnMount /selfservice/*.html worker1
JkUnMount /selfservice/*.jpg  worker1
JkUnMount /selfservice/*.gif  worker1

<VirtualHost *:80>
    ServerName  www.examples.com
    ServerAlias examples
    JkMountCopy On
    DocumentRoot /var/www/html
</VirtualHost>
************************************************


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message