The **Redirector 1** VM is pre-installed with apache2, ssl, mod_rewrite, proxy & proxy_http modules.  But this can be done with the following commands.

ubuntu@redirector-1 ~> sudo apt install apache2
ubuntu@redirector-1 ~> sudo a2enmod ssl rewrite proxy proxy_http

  

Apache runs under HTTP by default, but there's a built-in configuration for HTTPS that we can enable.  The "enabled" configurations are simply symlinks to those in the "available" directory.

ubuntu@redirector-1 /e/a/sites-enabled> ll
total 0
lrwxrwxrwx 1 root root 35 Nov  5  2021 000-default.conf -> ../sites-available/000-default.conf
ubuntu@redirector-1 /e/a/sites-enabled> sudo rm 000-default.conf
ubuntu@redirector-1 /e/a/sites-enabled> sudo ln -s ../sites-available/default-ssl.conf .
ubuntu@redirector-1 /e/a/sites-enabled> ll
total 0
lrwxrwxrwx 1 root root 35 May 26 10:27 default-ssl.conf -> ../sites-available/default-ssl.conf

  

Restart Apache for it to pick up the new configuration.

ubuntu@redirector-1 ~> sudo systemctl restart apache2


Open a browser on Attacker Windows and browse to [https://10.10.5.39](https://10.10.5.39/).  The default page should load with Apache's default self-signed certificate.

![[8. Apache Installation.png]]


