Created
July 31, 2017 21:04
-
-
Save zaquestion/7df9e6eb41c2e62bc69df988cd0728eb 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; | |
listen 80; | |
server_name whereis.blaise.in; | |
access_log /var/log/nginx/friends-access.log; | |
error_log /var/log/nginx/friends-error.log; | |
location ~* ^.+\.(gif) { | |
proxy_set_header Host friends.whereis.global; | |
proxy_pass http://friends; | |
} | |
location /getLocation { | |
proxy_set_header Host friends.whereis.global; | |
proxy_pass http://friends; | |
} | |
location / { | |
proxy_set_header Host friends.whereis.global; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://friends/blaise; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment