mirror of https://github.com/wulabing/Xray_onekey
解决 Path 分流时访问 Path 出现的 Bad Request 问题
parent
bc7f69cc3b
commit
9f27920dbe
|
@ -140,6 +140,7 @@ modify_nginx(){
|
|||
sed -i "/location/c \\\tlocation \/${camouflage}\/" ${nginx_conf}
|
||||
sed -i "/proxy_pass/c \\\tproxy_pass http://127.0.0.1:${PORT};" ${nginx_conf}
|
||||
sed -i "/return/c \\\treturn 301 https://${domain}\$request_uri;" ${nginx_conf}
|
||||
sed -i "/keepalive_timeout/i \\tproxy_intercept_errors on;" /etc/nginx/nginx.conf
|
||||
}
|
||||
web_camouflage(){
|
||||
##请注意 这里和LNMP脚本的默认路径冲突,千万不要在安装了LNMP的环境下使用本脚本,否则后果自负
|
||||
|
@ -286,7 +287,8 @@ nginx_conf_add(){
|
|||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
server_name serveraddr.com;
|
||||
index index.html index.htm;
|
||||
root /home/wwwroot/sCalc;
|
||||
root /home/wwwroot/sCalc;
|
||||
error_page 400 = /400.html;
|
||||
location /ray/
|
||||
{
|
||||
proxy_redirect off;
|
||||
|
|
Loading…
Reference in New Issue