Skip to content

Instantly share code, notes, and snippets.

@agalwood
Last active January 23, 2017 17:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agalwood/df9c7316d7e41a363c6fcc8e7907e54c to your computer and use it in GitHub Desktop.
Save agalwood/df9c7316d7e41a363c6fcc8e7907e54c to your computer and use it in GitHub Desktop.
zanphp.io nginx config
server {
listen 80;
server_name zanphp.io;
charset utf-8;
access_log /data/logs/nginx/zanphp.access.log main;
error_log /data/logs/nginx/zanphp.error.log;
root /home/www/zanphp.io;
index index.html index.htm index.php;
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location = /404.html {
root html;
}
location / {
index index.html index.htm index.php;
proxy_set_header Host $host:$server_port;
proxy_pass http://127.0.0.1:9588;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment