TermFDocs

DocsFeatures

Nginx

On an SSH connection, Ops tells you whether Nginx runs and whether its configuration is valid, follows its logs live, and reloads it only when the test passes.

Ops on a production server: the server's health, then Nginx running, its configuration valid, its enabled sites, and the buttons to follow its logs or reload it
Nginx and the server's health on an SSH connection. Sample data.

Check it

Pick an SSH connection in Ops › Connections, then Read in the Nginx panel:

  • Running, or stopped with its state;
  • what nginx -t says: the configuration is valid, or the error with its messages;
  • the enabled sites.

Follow its logs

Live access and Live errors open the Live tab on Nginx's access and error logs.

  • An access line takes the level of its status: a 5xx is an error, a 4xx a warning. The Errors filter shows the 5xx.
  • The text filter finds an IP address or a URL.

See Live logs for pause, clear and stop.

Reload it

Reload is offered once nginx -t passed. A card says what changes, then asks you to type the environment's name. The nginx-reload recipe runs nginx -t again on the server, and reloads only if it passes: open connections are not dropped.

An agent can ask for the same reload through its card. See Agents that act for you.

Edit this page on GitHub

Esc