|
location / { proxy_pass http://fna.northerneducationtrust.org; 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 X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Port $server_port; } |
签名用edgecdn完美解决 |
是不是反代的时候 传递真实IP 给 它了 |
你不发 ssl_name $Host; 吗? |
Crownsecular 发表于 2024-7-26 17:43 直接报告:ERR_TOO_MANY_REDIRECTS 添加proxy_redirect off;也一样 |
你加x-forward x-real不正告诉对面你用反代访问 |
xfspace 发表于 2024-7-26 22:35 X-Real-IP X-Forwarded-For 注释与开启,表现一样 |
本帖最后由 llyang 于 2024-7-26 23:03 编辑 nginx报错如下:
关闭IPv6也没用 |
反代 问题 ,解决了吗???proxy_set_header Host fna.northerneducationtrust.org |
GMT+8, 2024-9-8 11:36 , Processed in 0.041281 second(s), 26 queries , Gzip On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.