Nginx 反代, ios 系统 safari 报错 503

2019-10-08 20:26:17 +08:00
 xmlf

在 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;

    }
1446 次点击
所在节点    问与答
4 条回复
imWBB
2019-10-08 20:31:45 +08:00
你可以试试 frp 客户端 不要设置 ssl
而在 nginx 端 设置 ssl

github issue 中有 人给出这个问题的解决方法 但我试了 没成功。
好像 作者说过 不推荐用 nginx 反代。
xmlf
2019-10-08 20:36:53 +08:00
@imWBB 我就是在 nginx 端设置 ssl 的,其他系统中浏览器都正常。就是 ios 中 safari 无法访问
xmlf
2019-10-09 15:12:33 +08:00
排查后端 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)
moxuanyuan
2021-11-25 17:27:06 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/607193

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX