Chapter 7: Static Website Hosting (3 OSes × 2 Web Servers)
Common Mistakes I See Students Make
- Uploading files to the home folder and forgetting to copy them into the document root.
- Using
mvfrom the home folder on CentOS → files keep the wrong SELinux label → 403. Runrestorecon -Rv. - Naming the file
Index.htmlorindex.htmwhen the config expectsindex.html. - Leaving the Ubuntu
defaultsite enabled, so the welcome page keeps appearing. - Wrong
rootpath — a missing or extra folder level (e.g./var/www/mysite/mysite). - Not opening port 80 in the security group, or typing
https://without a certificate. - Uploading with Windows tools into a root-owned folder and getting Permission denied — upload to home, then
sudo cp.