Skip to content

Instantly share code, notes, and snippets.

@pimiento
Created April 25, 2014 12:45
Show Gist options
  • Save pimiento/11288404 to your computer and use it in GitHub Desktop.
Save pimiento/11288404 to your computer and use it in GitHub Desktop.
logger.conf
upstream flask_serv {
server 127.0.0.1:8800;
}
server {
listen 80;
server_name 176.121.11.72;
access_log /var/log/nginx/localhost.access_log;
error_log /var/log/nginx/localhost.error_log;
location /
{
rewrite ^(.*[^/])$ $1/ permanent;
fastcgi_pass flask_serv;
include fastcgi.conf;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment