Skip to content

Instantly share code, notes, and snippets.

@meglio
Created February 14, 2015 03:25
Show Gist options
  • Save meglio/4b0d15fb1b5bd2b1a727 to your computer and use it in GitHub Desktop.
Save meglio/4b0d15fb1b5bd2b1a727 to your computer and use it in GitHub Desktop.
wp-nginx
# WWW HTTP -> non-WWW
server {
listen 80;
server_name www.example.com;
return 301 $scheme://example.com$request_uri;
}
server {
listen 80;
server_name example.com;
root /home/example/wp/src;
include global/wp-restrictions;
# Additional rules go here.
# Only include one of the files below.
include global/wp-single;
# include global/wp-ms-subdir.conf;
# include global/wp-ms-subdomain.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment