8.8.8.8
(Google)
1
想要反代始皇的https://new.oaifree.com
但是我的1panel就是怎么设置都不成功
求大佬帮忙把把脉,看看该咋修改~
location ^~ / {
proxy_pass http://new.oaifree.com;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
add_header X-Cache $upstream_cache_status;
}
2 个赞
neo
(Neo)
2
proxy_ssl_server_name on;
1 个赞
8.8.8.8
(Google)
4
我的皇,是这样修改嘛?
location ^~ / {
proxy_pass http://new.oaifree.com;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
add_header X-Cache $upstream_cache_status;
proxy_ssl_server_name on;
}
这样设置出来这个报错
421 Misdirected Request
neo
(Neo)
5
location /
Connection Upgrade 不要,没有websocket
2 个赞