Last active
October 30, 2015 15:58
-
-
Save pereirinha/19210a5e907b3220c643 to your computer and use it in GitHub Desktop.
Nginx fallbacks
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
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