Last active
May 8, 2016 15:34
-
-
Save kevinruscoe/acaeb5691a03e43913469324bef4950a to your computer and use it in GitHub Desktop.
This file contains 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
server { | |
listen 80; | |
server_name {DOMAIN} www.{DOMAIN} {IP_ADDR}; | |
root /var/www/vhosts/{DOMAIN}/public; | |
include /etc/nginx/default.d/*.conf; | |
location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ { | |
access_log off; log_not_found off; expires max; | |
} | |
location / { | |
try_files $uri $uri/ /index.php?$args; | |
} | |
rewrite /wp-admin$ $scheme://$host$uri/ permanent; | |
error_page 404 /404.html; | |
location = /40x.html { | |
} | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment