Apache Web Server
To configure Apache2 you must follow below steps.
Setting Apache reverse proxy. Configure a new virtual host or site, copy that file into the same directory

Disable and Enable the new VirtualHost using the a2dissite, a2ensite utility and restart Apache2
Disable

Enable

Restart

Apache2 Modules. Use the a2enmod utility to enable a module:
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_ajp
sudo a2enmod rewrite
sudo a2enmod deflate
sudo a2enmod headers
sudo a2enmod proxy_balancer
sudo a2enmod proxy_connect
sudo a2enmod proxy_html
Setting port. Change Apache default port to a custom port. Edit: port.conf

Testing your application's context root.

Last updated