Juha Palomäki

Apache reverse proxy on Ubuntu

Install Apache and Enable relevant Apache proxy modules

sudo apt-get install apache2
sudo a2enmod proxy proxy_http

Create new configuration file for the virtual host in /etc/apache2/sites-available.

Link the created configuration file to sites-enabled. The numbers in target name are there to guarantee the files get loaded in certain order (Apache scans the sites-enabled folder and loads all configuration files).

ln -s /etc/apache2/sites-available/example \\
/etc/apache2/sites-enabled/001-example

Restart Apache (since we changed modules, otherwise reload would be enough)

sudo service apache2 restart
Juha Palomäki
Projects
Categories