在 Nginx 中使用反代+frp,安卓和 windows 下 Chrome edge Firefox 都能正常访问。使用 ios 中 safari 访问提示 503 service temporarily unavailable
同样数据不使用反代,ios 中 safari 访问正常。
下面是反代配置,求大佬指点迷津~~
proxy_pass https://www.xxx.com:2443;
proxy_ssl_server_name on;
proxy_ssl_verify off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_
forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-NginX-Proxy true;
proxy_http_version 1.1;
proxy_hide_header X-Powered-By;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-Proto $scheme;
limit_except GET POST {
deny all;
}
1
imWBB 2019-10-08 20:31:45 +08:00 via iPhone
你可以试试 frp 客户端 不要设置 ssl
而在 nginx 端 设置 ssl github issue 中有 人给出这个问题的解决方法 但我试了 没成功。 好像 作者说过 不推荐用 nginx 反代。 |
2
xmlf OP @imWBB 我就是在 nginx 端设置 ssl 的,其他系统中浏览器都正常。就是 ios 中 safari 无法访问
|
3
xmlf OP 排查后端 apache 日志发现,当 ios 设备打开网页会出现大量下列错误:
[Wed Oct 09 14:55:25.706718 2019] [ssl:info] [pid 26874:tid 139790246737664] [client 127.0.0.1:52726] AH01964: Connection to child 1 established (server xxxx.com:443) [Wed Oct 09 14:55:25.830468 2019] [ssl:info] [pid 26874:tid 139790238344960] [client 127.0.0.1:52728] AH01964: Connection to child 2 established (server xxxx.com:443) [Wed Oct 09 14:55:25.954582 2019] [ssl:info] [pid 26874:tid 139790229952256] [client 127.0.0.1:52730] AH01964: Connection to child 3 established (server xxxx.com:443) [Wed Oct 09 14:55:26.077785 2019] [ssl:info] [pid 26874:tid 139790221559552] [client 127.0.0.1:52732] AH01964: Connection to child 4 established (server xxxx.com:443) [Wed Oct 09 14:55:26.201933 2019] [ssl:info] [pid 26874:tid 139790213166848] [client 127.0.0.1:52734] AH01964: Connection to child 5 established (server xxxx.com:443) [Wed Oct 09 14:55:26.325708 2019] [ssl:info] [pid 26874:tid 139790204774144] [client 127.0.0.1:52736] AH01964: Connection to child 6 established (server xxxx.com:443) ................................ [Wed Oct 09 14:55:26.325708 2019] [ssl:info] [pid 26874:tid 139790204774144] [client 127.0.0.1:52736] AH01964: Connection to child 63 established (server xxxx.com:443) |
4
moxuanyuan 2021-11-25 17:27:06 +08:00
|