2014-11-19 16:27:37 -05:00
|
|
|
server {
|
|
|
|
|
|
|
|
server_name localhost;
|
2014-11-26 22:04:01 -05:00
|
|
|
access_log /srv/www/logs/nginx/rookeries-access.log;
|
|
|
|
error_log /srv/www/logs/nginx/rookeries-error.log info;
|
2014-11-19 16:27:37 -05:00
|
|
|
|
|
|
|
location /static/ {
|
2014-11-26 22:04:01 -05:00
|
|
|
alias /srv/www/rookeries_webapp/rookeries/static/;
|
2014-11-19 16:27:37 -05:00
|
|
|
}
|
|
|
|
|
2014-11-26 22:04:01 -05:00
|
|
|
location / {
|
|
|
|
try_files $uri @yourapplication;
|
|
|
|
}
|
2014-11-19 16:27:37 -05:00
|
|
|
location @yourapplication {
|
2014-11-26 22:04:01 -05:00
|
|
|
include uwsgi_params;
|
|
|
|
uwsgi_pass 127.0.0.1:8001;
|
2014-11-19 16:27:37 -05:00
|
|
|
}
|
|
|
|
}
|