
install nginx on Ubuntu, verify service status with systemctl, and check the version with nginx -v. start and stop the nginx service, and test delivery with curl on localhost.
Install nginx on CentOS with sudo yum install nginx, start and stop service, and verify status with systemctl and ps. Confirm page loads using curl http://localhost/ and note nginx version.
Spin up a temporary docker container from the red hat universal base image, install nginx, ps, ncurses, and curl, then start nginx and curl localhost to verify.
Find the official nginx image on docker hub, run it with docker to start a container that serves content, then curl localhost to verify and exit to remove the container.
Explore basic nginx configuration across ubuntu and centos, review nginx.conf, pid, and log files such as access and error logs, and verify running nginx processes.
Explains nginx configuration with nginx.conf in /etc/nginx, detailing directives (name and arguments with semicolons) and core contexts like events, http, and server, plus key settings such as worker_connections and access_log.
Configure nginx log files by adjusting error severity in error.log, manage context-specific logs, and create a custom access log format with a tailored set of fields, including request_time.
Learn to configure custom 404 error pages with nginx, understand file versus folder behavior, trailing slash redirects, and alias mapping to serve docs and PDFs using try_files and index directives.
Learn how nginx serves static content using the root directive and /var/www/html. Review the server context and listen directives for IPv4 and IPv6, and test with curl.
Configure nginx to serve files from /opt/appdev/docs via the /docs path, mapping /docs/index.html to /opt/appdev/docs/index.html.
Learn to configure nginx by editing nginx.conf and the include directive that points to sites-enabled/default, add a /docs location to /opt/appdev, restart nginx, and verify content on localhost.
Explore the difference between forward and reverse proxies, and learn how to configure nginx to act as a reverse proxy by forwarding requests to Tomcat.
Install OpenJDK and Tomcat on an Ubuntu server, start Tomcat, verify it runs on port 8080, and ensure nginx is running to forward requests to Tomcat.
Configure nginx as a reverse proxy to forward requests to Tomcat using proxy_pass, verify with curl, and route /examples to Tomcat while serving /docs from nginx.
Configure nginx for ssl to enable https with a certificate and key, then restart nginx and test with curl, noting hostname mismatch on localhost.
This course is completely free
In this course you will learn about nginx web server administration. The operating system used in the course is Ubuntu but majority of the steps will work on Unix/Linux based operating systems. The course covers a number of topics on nginx web server. Almost all of the topics are hands-on with some basic theory. The course is ideal for system admins or web admins or devops professionals who want to learn nginx web server administration. There is absolutely no coding experience required. Knowledge of Linux administration is required.
After completing this course, you will be able to:
Install nginx web server on Ubuntu, CentOS and containers
Install a nginx container
Understand the folder structure
Understand configuration files used by nginx
Learn some of the popular directives used by nginx
Perform administration tasks like stop and start nginx web server
Understand the main log files that are used by nginx
Customize the access log file used by nginx
Understand how content is served by nginx
Learn how to serve content from the file system
Display custom messages for common http errors
Understand the concept of a reverse proxy
Configure nginx as a reverse proxy
Configure SSL for nginx