Thanks for all of the replies.  I had tried most of the suggestions
previously, but things were still not working the way I wanted.
Specifically I could get it to work if I was willing to using
http://domain.com/appname, but not just http://domain.com/.

I had seen the Tomcat virtual hosting documentation, but overall we kind of
run a hybrid apache2 / apache tomcat environment so I needed to front end
everything through Apache2 mod_proxy_ajp.

It turns out I was *really* close and technically it was working.  The
Tomcat application (which is an Apache Wicket) was doing a redirect that
made a working config seem broken.

So here is my working (deemed working without major testing) for this
specific application.  Others may not require the Rewrite rule or may
require a different rewrite rule.

<VirtualHost *:80>
>     ServerName  testproxy.domain.com
>
>     RewriteEngine On
>     RewriteRule ^/appname/(.*)$ http://testproxy.domain.com/$1 [L]
>
>     ProxyPreserveHost   On
>
>     ProxyPass / ajp://localhost:8009/appname/
>     ProxyPassReverse / ajp://localhost:8009/appname/
>
>     <Proxy *>
>         Order allow,deny
>         Allow from all
>     </Proxy>
>
>     ErrorLog /var/log/apache2/testproxy.domain.com-error.log
>
>     # Possible values include: debug, info, notice, warn, error, crit,
>     # alert, emerg.
>     LogLevel warn
>
>     CustomLog /var/log/apache2/testproxy.domain.com-access.log combined
>     ServerSignature Off
> </VirtualHost>
>

Thanks to everyone who read or responded to this thread.

Reply via email to