And if the internal server still does a redirect to 192.168.10.blah, then
put both a rewrite and a proxy rule in the order shown: *NOTE the lack of
trailing slashes...

   #
   # 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]

   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/cowi<http://192.168.10.7/rev/>



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


2009/9/25 Peter C. Ndikuwera <[email protected]>

> 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.
---------------------------------------

Reply via email to