Biblioteca de referência

Cheatsheet de Nginx

Snippets de server block, proxy, redirect e cache no Nginx.

Test config

Referência: Validate configuration before reload.

nginx -t

Reload

Referência: Reload without dropping connections.

systemctl reload nginx

Reverse proxy

Referência: Forward requests to an app server.

proxy_pass http://127.0.0.1:3000;

Redirect

Referência: Create a permanent redirect.

return 301 https://example.com$request_uri;

Ferramentas relacionadas