Skip to content

Instantly share code, notes, and snippets.

@pereirinha
Last active October 30, 2015 15:58
Show Gist options
  • Save pereirinha/19210a5e907b3220c643 to your computer and use it in GitHub Desktop.
Save pereirinha/19210a5e907b3220c643 to your computer and use it in GitHub Desktop.
Nginx fallbacks
upstream fallback-qqgaita {
server dominio.com;
}
server {
listen 80;
listen 443 ssl;
server_name qqgaita.dev;
root /srv/www/qqgaita.dev;
include /etc/nginx/nginx-wp-common.conf;
location /assets/ {
try_files $uri @proxy;
}
location @proxy {
proxy_set_header Host dominio.com;
proxy_pass http://fallback-qqgaita;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment