- Installed
apache2(which is a httpd). - Updated the server with
sudo apt updateandsudo apt upgrade - Saw apache's homepage from Pavilion by going to
http://192.168.225.26 - Deleted
/var/www/html/index.htmland created a new filenewfile.txtin that dir. Then visited the website from Pavilion again. It had turned to an Index of website! - Made a new
index.htmlfile there. - Ran commands like
sudo systemctl start apache2andsudo systemctl stop apache2andsudo systemctl status apache2and examined the website from Pavilion after these. - Viewed config files at
/etc/apacheand log files at/var/log/apache2.
You don't have to delete index.html. You can create a directory at the same level as index.html, place the contents in there. In the index.html link to that directory and you should get the same result as if you had deleted index.html.
- I did the above and it works!