Re: Apache + Tomcat Problem

On Jun 21, 2:41 pm, Bryan <BTRichard...@xxxxxxxxx> wrote:
Hello all,

I'm having a problem with my connection between Apache and Tomcat
using mod_jk. I have it working right now with my VirtualHost in
Apache... any time I get a request for /java-stuff at xy.some- I use JkMount to forward the request to Tomcat using
ajp13_worker, which is defined in the class with
the host as localhost. I also have a VirtualHost set up in Tomcat's
server.xml file, which works just fine when I go to
8080. However, if I change my host in the file to
use rather than localhost, it doesn't work. I know
the /java-stuff path is correct, because it works when I go to port

Any suggestions? Anyone else have this problem?

Thanks in advance!

I remember having problems with this too, I ended up not using mod_jk,
and using a virtual host instead... It looks something like this.

<virtualhost *:80>
DocumentRoot C:/public_html
ProxyRequests off
ProxyPass /
ProxyPassReverse /

Server Name: Is the connection to Apache you want to pass off to
Document Root: Is your HTML root folder for Apache.
PoxyRequests: Make sure this is off.
ProxyPass: is where you want to pass the connection too in this case I
Tomcat set up on another computer on my network, you could also do
'/ localhost:8080/root/'
ProxyPassReverse: Should be the exact same as ProxyPass.