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=34197>.
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=34197

           Summary: index.jsp fails with Alias
           Product: Tomcat 5
           Version: 5.5.7
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Native:JK
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


When using Tomcat 2 and mod_jk (1.2.8) to integrate apache2 and Tomcat 5 -
index.jsp fails to be loaded regardless of DirectoryIndex index.jsp when using
an Alias directory (e.g. for a context)

index.jsp will be loaded for the default context (/) - but no others.  When
using /context/index.jsp, all will work fine.  

Results:

http://localhost:8080/contextpath/ [success]
http://localhost/contextpath/index.jsp [success]
http://localhost/contextpath [fail]

If you remove mod_jk from the apache configuration completely, index.jsp will be
served as a text file!  Somehow, using mod_jk removes index.jsp from being
visible in the context of an alias.

I have used the following configuration in Apache:

<IfModule mod_jk.c>

#Tomcat Security
<LocationMatch "/WEB-INF/">
  AllowOverride None
  deny from all
</LocationMatch>

<LocationMatch "/META-INF/">
  AllowOverride None
  deny from all
</LocationMatch>

JkWorkersFile /usr/local/apache2/workers.properties
JkLogFile /usr/local/apache2/logs/mod_jk.log
JkLogLevel debug
JkOptions     +ForwardDirectories #This does not seem to affect the issue

DirectoryIndex index.jsp

</IfModule>

Then to Alias

Alias /jmx-console /usr/java/jboss/server/default/deploy/jmx-console.war

JkMount /jmx-console/*.jsp foo #this line appears to make no difference

<Directory "/usr/java/jboss/server/default/deploy/jmx-console.war">
    DirectoryIndex index.html index.htm index.jsp
</Directory>

Note: Although I provided the configurations used as part of running the
embedded version of tomcat in jboss, the exact some behaviour can be observed
with a standard tomcat installation.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to