Skip to content

Instantly share code, notes, and snippets.

@kevinchappell
Created December 9, 2015 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinchappell/19f575ef5267c275d883 to your computer and use it in GitHub Desktop.
Save kevinchappell/19f575ef5267c275d883 to your computer and use it in GitHub Desktop.
Template to be read into vvv-pull
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