7. Apache and Nginx: Install and Understand
Chala mitrano, aaj aapan web server shikuya. Tumhi jya websites var pudhe Nikto, Burp Suite aani Gobuster chalavnar aahat, tya sagalya ya donpaiki ekavar chaltat – Apache kiwa Nginx. Mhanun aadhi te install karayla, chalavayla aani tyancha config vachayla shikuya. Amazon Linux aani Ubuntu dogha var karuya, karan companies madhe dogha distat. Ekdum simple aahe, fakt path aani service che naav lakshat theva.
What you will learn in this chapter
- What a web server does, and Nginx vs Apache
- Package names, service names, config paths and web roots on Amazon Linux 2023 and Ubuntu
- Installing, starting and enabling Nginx and Apache on both OSes
- Reading an Nginx server block and an Apache virtual host line by line
- Everyday commands: test, reload, logs; and SELinux basics
Concepts in this chapter
- 7.1What a Web Server Does: Nginx vs Apache
- 7.2Quick Reference: Packages, Services and Paths
- 7.3Installing Nginx and Apache on Amazon Linux 2023
- 7.4Installing Nginx and Apache on Ubuntu
- 7.5Reading an Nginx Server Block
- 7.6Reading an Apache Virtual Host
- 7.7Everyday Management Commands and SELinux Basics
The chapter recap is at the end of the last concept page.