42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
map $http_upgrade $sw2_site_connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name sw2.fuhua91.com;
|
|
root /www/wwwroot/sw2.fuhua91.com;
|
|
server_tokens off;
|
|
client_max_body_size 1024m;
|
|
|
|
# 保留宝塔证书验证目录,配置、日志和发布包不作为静态站点提供。
|
|
include /www/server/panel/vhost/nginx/well-known/sw2.fuhua91.com.conf;
|
|
include /www/server/panel/vhost/nginx/extension/sw2.fuhua91.com/*.conf;
|
|
location ^~ /.well-known/ {
|
|
try_files $uri =404;
|
|
}
|
|
|
|
location ~ /\. {
|
|
return 404;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:9601;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $sw2_site_connection_upgrade;
|
|
proxy_buffering off;
|
|
proxy_request_buffering off;
|
|
proxy_read_timeout 600s;
|
|
proxy_send_timeout 600s;
|
|
}
|
|
|
|
access_log /www/wwwlogs/sw2.fuhua91.com.log;
|
|
error_log /www/wwwlogs/sw2.fuhua91.com.error.log;
|
|
}
|