CentOS 5
Enable proxy_http
 
Foward requests to another web server by mod_proxy. This means configuring Web server as a revers proxy.
(1) www.server.world
[10.0.0.31]
- Web Server#1

(2) dlp.server.world
[10.0.0.30]
- Web Server#2
This example set servers that requests to Web server (1) forward to under /test on webserver (2)
[1] Configure httpd
[root@www ~]#
vi /etc/httpd/conf.d/proxy.conf
# create new

# directory you'd like to foward

<Location /proxy>
  
# destination directory that is forwared

   ProxyPass http://dlp.server.world/test
   ProxyPassReverse http://dlp.server.world/test
</Location>
[root@www ~]#
/etc/rc.d/init.d/httpd restart

Stopping httpd:
[  OK  ]

Starting httpd:
[  OK  ]

  Access with web browser. First, access to the place that does not have forwarding setting. Web server (1) replys normally as a following screen.
  Access to /proxy. Web server (2) replys as a following screen.
 
Tweet