Apache Web Server – Turn around intermediary is the point at which an intermediary worker (for this situation, Apache2 HTTP) acknowledges all traffic and advances it to a particular asset, similar to a backend worker or compartment.. The backend worker can be either another Apache2 or open source HTTP worker like Nginx…
Apache2 HTTP worker is one of the most well known open source web workers that is being used today… It’s not normally utilized as an intermediary worker, yet can be in the event that you need to utilize it as one..
There are numerous motivations to introduce and utilize an intermediary worker… Example, turn around intermediary can be utilized to included security, or for load adjusting, limit access to specific areas so as to forestall assaults and some more…
$ sudo apt-get update
$ sudo apt-get install apache2
$ sudo a2enmod proxy
$ sudo a2enmod proxy_http
cd /etc/apache2/sites-available
$ sudo vim reverse_proxy.conf
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
ServerAdmin webmaster@example.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
$ sudo a2ensite reverse_proxy.conf
$ sudo apachectl configtest
$ sudo systemctl reload apache2