不信网恋 发表于 2018-11-8 09:01:18

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]
查看完整版本: django结合nginx部署