Nginx configuration that works with Wordpress

Nginx configuration that works with Wordpress and TLS. Can serve pages
over HTTP and HTTPS. Redirect WWW to non-WWW