Skip to content
This repository was archived by the owner on Mar 19, 2022. It is now read-only.

Latest commit

 

History

History
24 lines (18 loc) · 1.53 KB

File metadata and controls

24 lines (18 loc) · 1.53 KB

Day 7

Notes

  • Installed apache2 (which is a httpd).
  • Updated the server with sudo apt update and sudo apt upgrade
  • Saw apache's homepage from Pavilion by going to http://192.168.225.26
  • Deleted /var/www/html/index.html and created a new file newfile.txt in that dir. Then visited the website from Pavilion again. It had turned to an Index of website!
  • Made a new index.html file there.
  • Ran commands like sudo systemctl start apache2 and sudo systemctl stop apache2 and sudo systemctl status apache2 and examined the website from Pavilion after these.
  • Viewed config files at /etc/apache and log files at /var/log/apache2.

as u/Loud-Progress-007 says,

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!

Readings