Skip to content

Instantly share code, notes, and snippets.

@zaquestion
Created July 31, 2017 21:04
Show Gist options
  • Save zaquestion/7df9e6eb41c2e62bc69df988cd0728eb to your computer and use it in GitHub Desktop.
Save zaquestion/7df9e6eb41c2e62bc69df988cd0728eb to your computer and use it in GitHub Desktop.
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