help setting up apache proxy..

itachi

Senior member
Aug 17, 2004
390
0
0
i'm having a bit of trouble on setting up apache to proxy requests for a certain path to a different server.. what i'm trying to do is have apache form a proxy when http://domain.name/path is requested, to a tomcat server residing at http://local.ip:8080.. the tomcat server is blocked by a firewall so all communication has to be done through the apache server.

i looked over the documentation and added the following to httpd.conf
LoadModule proxy_module modules/mod_proxy.so
AddModule mod_proxy.c
.....
ProxyPass /path http://local.ip:8080
ProxyPassReverse /path http://local.ip:8080

and the following to server.xml..
<Connector port=8080 proxyName="domain.name" proxyPort="80" ....>
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
I did something like this once, but can't remember all of the details. I think I had to make a virtual host for it and reverse proxy that instead.