server {
listen 81; # make this 81
charset utf-8;
server_name easycredit.xcite.com;
root /var/www/enet;
gzip on;
gzip_static on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types text/plain text/css text/javascript application/x-javascript;
gzip_disable "msie6";
gzip_vary on;
expires 7d;
location /static {
root /var/www/enet/enet;
try_files $uri $uri/ =404;
}
location = /favicon.ico {
root /var/www/enet/enet/static;
try_files $uri $uri/ =404;
}
location / {
proxy_pass http://127.0.0.1:8000;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
}
Created
December 24, 2014 12:27
-
-
Save prakhar1989/b1f077478309ffebbeec to your computer and use it in GitHub Desktop.
Deploying Flask on Centos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment