Apache can act as a proxy server with installation of mod_proxy module
It connects one apache to web servers or application servers
Simple Configuration enabling apache act as reverse proxy
1 .vi /etc/hosts ( we have to define target address in hosts file)
192.168.1.2 www.urname.com (This can be a application server or websever)
2. vim /etc/httpd/conf/httpd.conf ( Redhat/Fedora)
ProxyPass / http://192.168.1.2:80
ProxyPassReverse / http://192.168.1.2:80
Restart httpd service in apache
Check the config by typing the web site name .
No comments:
Post a Comment