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
LinkedIn profile
@jpalomaki
me@stackoverflow
juhap@github
juhap@iki.fi