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] New: - jkunmount causes apache to throw permission denied error
Date Fri, 11 Jan 2008 21:15: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

           Summary: jkunmount causes apache to throw permission denied error
           Product: Tomcat 5
           Version: 5.5.25
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Native:JK
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: yuelu@stanford.edu


I was trying to use JkUnMount directive to have gif files served by apache
instead of tomcat.  The gif files are originally in the
webapps/selfservice/images directory.  I copied them to the
/var/www/html/selfservice/images directory. I am getting apache error message:

******************************************************************************
You don't have permission to access /selfservice/images/welcome.gif on this server.
******************************************************************************

However if I add a rewrite rule:

******************************************************************************
RewriteRule ([^\/\.]+)\.(gif|jpg|jpeg|png|wbmp)$ /selfservice/images/$1.$2 [L]
******************************************************************************

it works fine.

My apache conf file is as follows:

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

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
    DocumentRoot /var/www/html
</VirtualHost>
********************************************

The version of mod_jk is 1.2.21, apache is 2.0.52, tomcat is 5.5.25.

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