- Install apache:
apt install apache2
- Create "web" directory:
mkdir /var/www/html/
(it will hold gha databases dumps and other static info on the main domain.) - Copy either
apache/www/index_test.html
orapache/www/index_prod.html
to/var/www/html
and adjust this file if needed. - Enable mod proxy, mod rewrite and mod headers:
ln /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled/
ln /etc/apache2/mods-available/proxy.conf /etc/apache2/mods-enabled/
ln /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled/
ln /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
ln /etc/apache2/mods-available/headers.load /etc/apache2/mods-enabled/
a2enmod headers
- You can enable SSL, to do so You need to follow SSL instruction in SSL (that requires domain name).
service apache2 restart