Created
December 9, 2015 15:42
-
-
Save kevinchappell/19f575ef5267c275d883 to your computer and use it in GitHub Desktop.
Template to be read into vvv-pull
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
server { | |
listen 80; | |
listen 443 ssl; | |
server_name ##DEV_DOMAIN##; | |
root /srv/www/##V_USERNAME##/htdocs; | |
include /etc/nginx/nginx-wp-common.conf; | |
location ~* .(js|css|png|jpg|jpeg|gif|ico)$ { | |
expires 24h; | |
log_not_found off; | |
try_files $uri $uri/ @production; | |
} | |
location @production { | |
resolver 8.8.8.8; | |
proxy_pass ##PRODUCTION_DOMAIN##/$uri; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment