server {
listen 80;
server_name ;
-sharp listen [::]:80;
-sharproot /home/wunder/yueyar;
location / {
-sharp First attempt to serve request as file, then
-sharp as directory, then fall back to displaying a 404.
proxy_pass http://0.0.0.0:8001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-sharp try_files $uri $uri/ =404;
}
location /static {
alias /home/wunder/MyVirtualenv/yueyar/mysite/static;
}
}