[Ilugc] Doubt in Apache Proxy setup

  • From: bhuvan@xxxxxxxxxx (Bhuvaneswaran A)
  • Date: Thu Feb 19 06:33:14 2009

On Tue, Feb 17, 2009 at 5:18 PM, Dinesh Kumar <dineshatit@xxxxxxxxx> wrote:

my target

        http://localhost/         forward  proxy to
http://192.168.1.1:8080/

        https://localhost:443/  forward proxy to
https://192.168.1.1:8443/


I think you may also want to handle reverse proxying from 192.168.1.1 ->
localhost, by adding following lines to httpd.conf in VirtualHost 80
section.

RewriteRule               /                http://192.168.1.1:8080/
ProxyPassReverse     http://192.168.1.1:8080/      /

and following lines in VirtualHost 443 section.

RewriteRule               /                http://192.168.1.1:8443/
ProxyPassReverse     http://192.168.1.1:8443/      /

-- 
Regards,
Bhuvaneswaran A
www.livecipher.com
GPG: 0x7A13E5B0

Other related posts: