[lug] apache and mod_proxy

Hugh Brown hugh at math.byu.edu
Tue Mar 2 10:57:42 MST 2004


I have a Suse Standard Server 8 box that I am fighting with.

I have apache 1.3 that I want to front for tomcat.  mod_jk flopped so I
am trying to get mod_proxy to work by setting up a reverse proxy. 
apache and tomcat are running on the same machine

In my httpd.conf I have the following:

<VirtualHost _default_:*>
ProxyRequests off
ProxyPass         /webapp1/  http://localhost:8080/webapp1/
ProxyPassReverse  /webapp1/  http://localhost:8080/webapp1/
ProxyPass         /webapp2/  http://localhost:8080/webapp2/
ProxyPassReverse  /webapp2/  http://localhost:8080/webapp2/
</VirtualHost>


When I hit the http://webhost/ at port 80, I get the defaults that I
expect.  When I then go to http://webhost/webapp1/ the URL gets
rewritten and I get an error.

Any ideas?

Hugh




More information about the LUG mailing list