On Sun, Aug 29, 2010 at 3:29 PM, Alan Holden <[email protected]> wrote:

> <Host name="www.mydomain.com">
> <Context path="" docBase="/usr/local/tomcat/webapps/foo/" />
> </Host>
>
> Add the following to /etc/apache2/sites-available/default:
>
> <VirtualHost *:80>
>       ServerName www.mydomain.com
>       ProxyPass / http://96.xxx.152.xxx:8080/foo/
>       ProxyPassreverse / http://96.xxx.152.xxx:8080/foo/
>       HostnameLookups Off
> </VirtualHost>
>

If your host name on the Tomcat side is www.mydomain.com why are you
proxying all the way down to the foo directory instead of proxying to the
Tomcat host itself? I believe that's your problem.

<VirtualHost *:80>
  ServerName www.mydomain.com
  ProxyPass / http://www.mydomain.com:8080/
  ProxyPassReverse / http://www.mydomain.com:8080/
</VirtualHost>

You could also do ajp://www.mydomain.com:8009/ if you prefer.

-- 
Matthew Woodward
[email protected]
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 official manual: http://www.openbluedragon.org/manual/
 Ready2Run CFML http://www.openbluedragon.org/openbdjam/

 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to