Hello,
the problem was that I edited the wrong server.xml. The one that was not
used. So now that I figured that out, settings these two settings help.

<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
        <Listener className="org.apache.catalina.core.JasperListener" />
        <Listener 
className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
        <Listener 
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
        <Listener 
className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
        <GlobalNamingResources>
                <Resource name="UserDatabase" auth="Container"
                        type="org.apache.catalina.UserDatabase"
                        description="User database that can be updated and 
saved"
                        
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                        pathname="conf/tomcat-users.xml" />
        </GlobalNamingResources>
        <Service name="Catalina">
                <Connector port="8080" protocol="HTTP/1.1"
                connectionTimeout="3000"
                URIEncoding="UTF-8"
                redirectPort="8443"
                maxHttpHeaderSize="8192"
                maxThreads="400"
                processorCache="400"
                minSpareThreads="40"
                enableLookups="false"
                acceptCount="100"
                disableUploadTimeout="true"
                />
                <Connector port="8009" protocol="AJP/1.3"
                address="0.0.0.0"
                requiredSecret="false"
                redirectPort="8443"
                URIEncoding="UTF-8"
                connectionTimeout="3000"
                maxThreads="400"
                processorCache="400"
                minSpareThreads="40"
                maxConnections="400"
                enableLookups="false"
                acceptCount="100"
                />
                <Engine name="Catalina" defaultHost="localhost" 
jvmRoute="tomcat-06" >
                        <Realm 
className="org.apache.catalina.realm.LockOutRealm">
                                <Realm 
className="org.apache.catalina.realm.UserDatabaseRealm" 
resourceName="UserDatabase"/>
                        </Realm>
                        <Host name="localhost"  appBase="webapps" 
unpackWARs="true" autoDeploy="true">
                                <Valve 
className="org.apache.catalina.valves.AccessLogValve"
                                        directory="logs"
                                prefix="localhost_access_log." suffix=".txt"
                                pattern="%h %l %u %t &quot;%r&quot; %s %b" />
                        </Host>
                </Engine>
        </Service>
</Server>

However when I try to access this using mod_jk, I get a 403. I used a sniffer
and it is coming from the AJP connector. So I tried to set
allowedRequestAttributesPattern=".*" but that did not solve my problems, any
ideas?

Setup is:

apache with mod_jk 1.2.46 load balances over 4 tomcats on seperate hosts.

Cheers,
        Thomas

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

Reply via email to