django结合nginx部署
user root;server {
listen 80;
server_name localhost;
location / {
uwsgi_pass 0.0.0.0:9001;
include uwsgi_params;
}
location /static/{
alias /root/Django-1.6.11/Simplecmdb/static/;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
页:
[1]