A reverse proxy is a gateway for servers, and enables one web server to provide content from another transparently. So if you have Internal Web Applications running on your Intranet but you want to access them from Outside then you can use this. But your Apache Server need to have access of your LAN and also Internet so that it can be reached from outside. In recent Apache Versions this feature is already there. Please make sure that in your Apache configuration this modules are loaded :
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
Then you are good to go. Next Step is configuring your Apache for Reverse Proxy. For example www.revproxy.com is your Apache server which is accessible from internet and this server also has access to your local server where your Web application is running like http://192.168.200.2/webapps. Now we will configure Apache so that Users from internet can access the local webapps via http://www.revproxy.com/webapps. Please edit your httpd.conf file and add this lines. You might have to modify as per your requirement.
## Reverse Proxy for WebApps ##
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyPass /webapps http://192.168.200.2/webapps
ProxyPassReverse /webapps http://192.168.200.2/webapps
###############################
Now restart HTTP service and browse http://www.revproxy.com/webapps. You will get the webapps from http://192.168.200.2/webapps
Recent Comments