8. Hosting a Static Website and Changing the Configuration
Chala mitrano, aata aapli pahili website internet var taakuya! Aaj aapan ek chhoti static site banavnar, ti server var upload karnar, aani Nginx aani Apache dogha ne – Amazon Linux aani Ubuntu var – host karnar. Mag real kaamasathi lagnare badal shikuya: document root badalne, port badalne, index page badalne aani server thoda secure karne. Pratyek step nantar browser madhe check kara – swatahchi site disli ki khup maja yete.
What you will learn in this chapter
- Creating a sample website and uploading your own files (scp, git, SFTP)
- Hosting it with Nginx and Apache on Amazon Linux 2023 and Ubuntu (four combinations)
- Changing the document root, the port and the index page
- SELinux and security group notes for each change
- Basic hardening of a static web server
Concepts in this chapter
- 8.1Create the Sample Website and Upload Files
- 8.2Amazon Linux 2023 + Nginx
- 8.3Amazon Linux 2023 + Apache
- 8.4Ubuntu + Nginx
- 8.5Ubuntu + Apache
- 8.6Changing the Document Root
- 8.7Changing the Port
- 8.8Changing the Index Page
- 8.9Basic Hardening of a Static Web Server
The chapter recap is at the end of the last concept page.