Created
February 14, 2015 03:25
-
-
Save meglio/4b0d15fb1b5bd2b1a727 to your computer and use it in GitHub Desktop.
wp-nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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