Skip to content

Instantly share code, notes, and snippets.

@nkpoid
Created January 4, 2016 03:36
Show Gist options
  • Save nkpoid/11c0f4240b5b0d7baa7c to your computer and use it in GitHub Desktop.
Save nkpoid/11c0f4240b5b0d7baa7c to your computer and use it in GitHub Desktop.
nginx configuration
# /usr/local/etc/nginx/nginx.conf
user nkpoid staff;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
proxy_set_header Host $http_host;
proxy_set_header X-Remote-Addr $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
server {
listen 80;
server_name _;
location / {
root html;
index index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
include servers/*;
}
# /usr/local/etc/nginx/servers/pow.conf
server {
listen 80;
server_name *.dev;
location / {
proxy_pass http://pow.dev:20559;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment