nginx
NetworkPackage: nginx
The web server and reverse proxy of the hosting courses. The command itself is mostly for nginx -t, which validates the configuration before a reload: an invalid configuration reloaded leaves the old one running, without saying so loudly.
What its options do in the lessons
From the same glossary the lessons render under their commands, so the two cannot disagree.
nginx -T- Does everything
-tdoes — parse and validate — then dumps the whole configuration to standard output, every included file in place and in the order it was read. That is what nginx loaded, not what the file you are editing contains. nginx -t- Tests the configuration without reloading. Run it before every
reload: an invalid configuration stops the reload and can leave the service down. nginx -V- Prints the version and, in addition, the binary's compile-time options. That is where
--with-debugis visible, without which the error log'sdebuglevel writes nothing extra.
Lessons that teach it
- Your first server blockHosting a web application with Nginx
- Reading the access log: what one line already provesHosting a web application with Nginx
- Reverse proxying a Node applicationHosting a web application with Nginx
- Reading the error log: why the 502 happenedHosting a web application with Nginx
- Ninety days, and nothing will warn youHosting a web application with Nginx
- Which server block answers, and why the wrong site sometimes doesHosting a web application with Nginx
- The limits that refuse: 413 and 504Hosting a web application with Nginx
- The headers you think you setHosting a web application with Nginx
- Creating a site, then putting a Node.js application on itISPConfig: hosting several sites on one server
- Releases and a symlink: the switch as one operationDeploying: releases, the switch and rolling back
- The build, step by stepThe capstone: from repository to production
