Skip to content

Instantly share code, notes, and snippets.

@halfdan
Created October 26, 2013 23:12
Show Gist options
  • Save halfdan/7175711 to your computer and use it in GitHub Desktop.
Save halfdan/7175711 to your computer and use it in GitHub Desktop.
server {
server_name apileofblog.com;
root /var/www/apileofblog.com;
include conf.d/cache-static.conf;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header HOST $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:2370;
proxy_redirect off;
}
}
server {
server_name flyghost.com;
include conf.d/cache-static.conf;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header HOST $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:2368;
proxy_redirect off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment