Skip to content
My Nginx configuration files, for all to use and improve upon.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
server.nginxconf
site.nginxconf

README.md

nginx

This is a repo for sharing my nginx configs, as part of the following tutorial:

[ The Ultimate Speed Guide for Wordpress on Nginx ]

Security and obscurity

I'll probably be asked about why I'm putting my actual configs out there for people to see. While I do believe obscurity can help with security in some situations, I don't believe this to be one of them.

A few points:

  1. Nginx security comes from having a good configuration, not from hiding your configuration. There may be one or two attackers who are slightly helped in attacking me by having my actual configs, but it's not enough to worry about.

  2. I'm running PHP and Wordpress, and it's a public website, so getting completely curb stomped is neither unlikely nor overly troubling.

  3. Finally, the benefits to others in seeing decent configs outweighs my selfish desire to add .014% security by hiding my configs.

So I'll keep them up here unless I see a good argument why I shouldn't.

You can’t perform that action at this time.