This took me days to figure out. I am happy to share with you guys who are wondering how to setup a reverse proxy.
<VirtualHost *:8081>
ServerName my-server
DocumentRoot /var/www/html/my-app
RewriteEngine On
<Directory /var/www/html/my-app/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://{internal-app-server-ip}/
ProxyPassReverse / http://{internal-app-server-ip}/
</VirtualHost>
Save it and restart apache service.
When you access http://my-server:8081 in a browser apache will interpret the configuration above and redirects the url to http://{internal-app-server-ip}/ - internally while preserving the originating url in your browser which is http://my-server:8081.
Subscribe to:
Post Comments (Atom)
Wordpress - Local installation in Vmware
If you're interested in exploring website design with WordPress, this guide will help you set up a WordPress instance on your local mach...
-
To print single column from a text file #awk -F: '{print $1}' /etc/passwd To print multiple columns from a text file # awk -F: '...
-
1. Using Netstat to Count TCP Connection States netstat -an|awk '/tcp/ {print $6}'|sort|uniq -c 2. List TCP/UDP and it's PID net...
-
Your new IT project requires you to setup postgresql database and most of the time we get to the postgresql website and download the version...
No comments:
Post a Comment