Apache 2.2 & Tomcat 5.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Force Flow
    New Member
    • Aug 2007
    • 1

    Apache 2.2 & Tomcat 5.5

    I'm trying to configure an apache 2.2 and tomcat 5.5 setup on Windows XP. I'm using mod_jk 1.2.25, which is working. I've also setup mod_rewrite, which is also working, but not with addresses that are located within a tomcat webapp.

    Here's what I have configured in my httpd.conf (I'm not sure if this is at all the correct way to do it since I'm new at this and many of the articles out there give contradicting information. So, the JkOptions, among other things, may or may not be correct)

    Code:
    #
    # Mod_jk module config for tomcat 5.5
    #
    <IfModule mod_jk.c>
        JkWorkersFile conf/workers.properties
        JkLogFile logs/mod_jk.log
        JkLogLevel info
        JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
        JkOptions +ForwardURIProxy +ForwardKeySize +ForwardURICompat +ForwardDirectories
        JkRequestLogFormat "%w %V %T"
    
        JkMount /* workertomcatmodjk
        JkMount /mywebapp/* workertomcatmodjk
        
        SetEnvIf Request_URI "/phpmyadmin*" no-jk
        SetEnvIf Request_URI "/phpMyAdmin*" no-jk
        
        
        <Location /*/WEB-INF/*>
            AllowOverride None
            deny from all
        </Location>
    
    </IfModule>
    I have configured nothing for Tomcat for getting mod_jk to work.

    Any ideas? Thanks :)
  • Buddy Casino
    New Member
    • Sep 2007
    • 1

    #2
    +ForwardURIxxx are mutually exclusive. See http://tomcat.apache.o rg/connectors-doc/webserver_howto/apache.html, section "forwarding ". ForwardURIProxy Should be the correct one for your case, delete ForwardURICompa t.

    Comment

    Working...