- upstream myxxx {
- server unix:///www/xxx/xxx.sock;
- }
- server
- {
- listen 80;
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- listen [::]:80;
- server_name sn.xxx.com;
- location /static {
- alias /www/xxx/static;
- }
- location /media {
- alias /www/xxx/media;
- expires 31536000;
- }
- location / {
- uwsgi_pass myxxx ;
- include /www/server/nginx/conf/uwsgi_params;
- }
复制代码 我是这样干的,干脚还不错!!具体的不懂
|