Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting reverse proxy routing to work

Status
Not open for further replies.

factor3

Programmer
Oct 4, 2011
1
US
Greetings:

I am trying to use Apache as a routing server, which receives http requests and sends them to different machines based on the domain. I am attempting to do this using the reverse proxy features.

I have started by attempting to set up a single proxy entry by putting the following into my httpd.conf file:

ProxyPreserveHost On

ProxyPass / ProxyPassReverse /
My machine is called proxbox and is running Fedora 15 (if that makes any difference!). Apache is listening on Port 80, and my firewall is configured to allow requests on that port.

The address given in the ProxyPass and ProxyPassReverse lines point to a machine that is in my local network.

According to what I have read in the Apache documentation, I am doing everything right.

Nevertheless, if I run Apache and attempt to access my source server through the URL: I get a "Service Temporarily Unavailable" failure.

Am I missing something here? How can I get this routing to work?
 
Service Temporarily Unavailable sounds like a message from Tomcat, not apache. Perhaps the proxy is working, and you are just accessing a portion of the web container that isn't working correctly?

Is the service running on *.7:8080 in fact tomcat? If so, I would suggest using mod_jk as a connector between apache and tomcat. It's a bit more intelligent and robust than a reverse proxy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top