Overview
I installed Nginx on Ubuntu, created my own HTML page and site configuration, enabled the site and then went through the access and error logs.
What I set out to do
- Serve my own site with Nginx and open it from another machine.
What I did
- I installed Nginx and confirmed it was listening on port 80.
- I created my page and site configuration in sites-enabled.
- I tested the configuration and reloaded Nginx.
Screenshots
They are in the same order as in my repository. Click one to see it full size.
1. Nginx Server InstallationInstalled Nginx on the Ubuntu Linux server and verified that the service is active and running. 2. Nginx Port 80 VerificationVerified that Nginx is listening for HTTP connections on TCP port 80. 3. Local Web Server TestTested the Nginx web server locally using `curl` and confirmed that the web server was responding successfully. 4. Custom Web PageCreated a custom HTML page for the Linux server and configured the web content to be served through Nginx. 5. Nginx Configuration TestTested the Nginx configuration syntax and verified that the configuration was valid. 6. Nginx Site ConfigurationCreated a custom Nginx site configuration and enabled it using the `sites-enabled` directory. 7. Nginx Reload and Service VerificationReloaded Nginx after applying the configuration changes and verified that the service remained active and running. 8. Custom Site VerificationAccessed the server from a web browser using its IP address and verified that the custom Linux web page was being served successfully. 9. Nginx Access and Error LogsReviewed the Nginx access and error logs to verify client requests and monitor web server activity.
How I tested it
- curl returned the page on the server.
- A browser on the network opened my page by IP address.
- The access and error logs recorded the requests.
Repository
My full notes and the original screenshots are on GitHub: linux-projects/05-nginx-web-server