/www/cloud_waf/nginx/conf.d/vhost/shop_cwbio_com.conf
为了方便后台配置,需要删除这段配置信息,移到后台:
。。。。。。
location / {
proxy_pass https://shop_cwbio_com;
proxy_set_header Host $host_optimize;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache off;
}
。。。。。。
重新编辑删除的配置文件,注意保持和删除的一致,然后加入超时配置
location / {
proxy_pass https://shop_cwbio_com;
proxy_set_header Host $host_optimize;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache off;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
client_max_body_size 500m;
}
修改好的文件保存到服务这个目录:
/www/cloud_waf/nginx/conf.d/user/shop_cwbio_com.conf