Enable proxy_http2011/03/20 |
Foward requests to another web server by mod_proxy. This means configuring Web server as a revers proxy.
(1) www.srv.world [10.0.0.31] - Web Server #1 (2) dlp.srv.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.srv.world/test ProxyPassReverse http://dlp.srv.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. | |
Sponsored Link |
|