tomcat behind apache

Posted by dannynjust on Pro Webmasters See other posts from Pro Webmasters or by dannynjust
Published on 2012-05-20T03:09:28Z Indexed on 2012/06/19 9:24 UTC
Read the original article Hit count: 377

Filed under:
|
|

i am trying to use the mod_proxy_ajp to forward all the request from tocat.example.com to example.com:8080 here is what the tomcat server.xml looks like:

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

and here is the apache.conf config:

<VirtualHost *:80>
        ServerName tomcat.example.com
        ServerAdmin [email protected]
        ErrorLog logs/tomcat.example.com-error_log
        CustomLog logs/tomcat.example.com-access_log common
        <Proxy *>
                AddDefaultCharset Off
                Order deny,allow
                Allow from all
        </Proxy>
        ProxyPass / ajp://example:8009/
        ProxyPassReverse / ajp://example:8009/
</VirtualHost>

but it is not working, any idea?

© Pro Webmasters or respective owner

Related posts about apache

Related posts about virtualhost