Thanks Peter,

Tried it and I get

"Waiting for 192.168.10.6"

at the bottom of the browser

Then later "connection to 192.168.10.6 failed" appears in the browser.

Seems to be a NAT problem

I have the following modules loaded

proxy proxy_http proxy_ftp proxy_connect rewrite

Kiggs



On Sep 25, 2009, at 10:23 PM, Peter C. Ndikuwera wrote:

Try this:

  #
   # allow proxy-access
   #
   <Proxy *>
       Allow from all
   </Proxy>

   #
   # call mod_proxy to forward all requests to the
   # application-server
   #
   RewriteEngine On
   RewriteRule /foomz(.*) http://192.168.10.6/rev$1 [P,L]
   RewriteRule /bartz(.*) http://192.168.10.7/cowi$1 [P,L]

Make sure mod_rewrite and mod_proxy are enabled. In SuSE, just edit /etc/sysconfig/apache and look for the line APACHE_MODULES and add "rewrite" and "proxy" and "proxy_http"

Peter


"Happiness makes up in height what it lacks in length"
-- Robert Frost


2009/9/25 Kiggundu <[email protected]>

I have two identical web servers behind a linux firewall
>From the outside I want to reach each web server individually

I tried proxy redirect on apache and it gets there as shown below

ProxyPass /foomz/ http://192.168.10.6/rev/
ProxyPassReverse /foomz/ http://192.168.10.6/rev/

ProxyPass /bartz/ http://192.168.10.7/cowi/
ProxyPassReverse /bartz/ http://192.168.10.7/rev/


But once you log in /rev is sent back to the web browser not /bartz or /foomz

I tried rinetd (both running the servers on port 80 and on ports 81 and 82 respectively)

And it just sits there saying server contacted waiting for response

Is there any way for me to type http://xxx.yy.ug/bartz or http:// xxx.yy.ug:82/ and get to one server inside and then type http://xxx.yy.ug/foomz or http://xxx.yy.ug:81/ and get to the other server?


Kiggs

_______________________________________________
LUG mailing list
[email protected]
http://kym.net/mailman/listinfo/lug
%LUG is generously hosted by INFOCOM http://www.infocom.co.ug/

The above comments and data are owned by whoever posted them (including attachments if any). The List's Host is not responsible for them in any way.
---------------------------------------


_______________________________________________
LUG mailing list
[email protected]
http://kym.net/mailman/listinfo/lug
%LUG is generously hosted by INFOCOM http://www.infocom.co.ug/

The above comments and data are owned by whoever posted them (including attachments if any). The List's Host is not responsible for them in any way.
---------------------------------------


_______________________________________________
LUG mailing list
[email protected]
http://kym.net/mailman/listinfo/lug
%LUG is generously hosted by INFOCOM http://www.infocom.co.ug/

The above comments and data are owned by whoever posted them (including 
attachments if any). The List's Host is not responsible for them in any way.
---------------------------------------

Reply via email to