Skip to content

Organise Large Nginx Configs

View on Twitter

💡 Nginx configuration files can quickly become long and difficult to maintain.

👉🏼 Break up configuration into standalone units and place them in /etc/nginx/snippets. Use the "include" directive to import them.

Typical Nginx configuration using two includes to import configurations from snippets/security.conf and snippets/general.conf.

Download the VPS Security Cheatsheet

Use this FREE security cheatsheet to not miss a step when securing your VPS.

A preview of the VPS Security Cheatsheet.

You'll also get tips on building scalable Node.js applications about twice a month. I respect your email privacy. Unsubscribe any time.

You might also like
Sites-Available vs Sites-Enabled in Nginx Read tip
Prune Docker Objects and Free up Space Read tip
Easily Customise Your Shell Prompt Read tip