I've been trying to setup an internet proxy to redirect towards the tomcat application that is situated at

http://example.com:8085/app . But I'm not capable of getting results.

<VirtualHost XXX.XXX.XXX.XX:80>
    ServerName example.com

    ServerAlias www.example.com

    ProxyRequests Off

    ProxyPreserveHost On

    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

    ProxyPass /app http://localhost:8085/app
    ProxyPassReverse /app http://localhost:8085/app

    #ProxyPass / ajp://localhost:8085/ (tried this as well)
    #ProxyPassReverse / ajp://localhost:8085/ (tried this as well)

    <Location />
        Order allow,deny
        Allow from all
    </Location>

    #DocumentRoot /home/groupname/public_html (apache location - dummy)

    DocumentRoot /usr/local/tomcat/apache-tomcat-6.0.33/webapps/app (tomcat location)

</VirtualHost>

Following may be the configuration in the server.xml file.

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

    <Engine name="Catalina" defaultHost="localhost">

    <Host name="localhost"  appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">

<Connector port="8085" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

Now this is exactly what I'm attempting to do. After I type www.example.com or example.com I wish to visit the application. Can someone produce pointers regarding that i'm doing wrong.

You will need mod_jk or something like that much like perform the real link between tomcat and apache.

Try this

The proxy configurations available online for is much more targeted for hiding the main harbour number