Nginx 监听www.xxx.com 和 xxxx.com 两个端口同时访问
server {listen80;server_namewww.xxxx.com “空格分割"xxxx.com;charset UTF-8;access_log off;error_log”日志保存地址“;client_max_body_size 75M;location / {include uwsgi_params;uwsgi_pass 127.0.0.1...
·
server {
listen 80;
server_name www.xxxx.com “空格分割"xxxx.com;
charset UTF-8;
access_log off;
error_log ”日志保存地址“;
client_max_body_size 75M;
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:9573;
uwsgi_read_timeout 1800;
uwsgi_send_timeout 300;
proxy_read_timeout 300;
}
location /static {
expires 30d;
autoindex on;
add_header Cache-Control private;
alias ”静态文件地址“
}
}
更多推荐
所有评论(0)