共计 1543 个字符,预计需要花费 4 分钟才能阅读完成。
如题,有 Nginx 反代经验的坛友能不能分享一下经验,现在无论怎么配都是 ERR_SSL_UNRECOGNIZED_NAME_ALERT laoniu0711 2023-05-16 22:07 2#PROXY-START/location ~* \\.(gif|png|jpg|css|js|woff|woff2)${ proxy_pass https://test.web; proxy_ssl_name test.web; proxy_ssl_server_name on; proxy_set_header Referer "https://test.web"; proxy_set_header Host test.web; 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_redirect off; add_header X-Cache $upstream_cache_status; #Set Nginx Cache proxy_set_header Accept-Encoding ""; sub_filter "https://trtest.web" "https://test.web"; sub_filter_once off; add_header Cache-Control no-cache; expires 12h;}location /{ proxy_pass https://test.web; proxy_ssl_name test.web; proxy_ssl_server_name on; proxy_set_header Referer "https://test.web"; proxy_set_header Host test.web; 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_redirect off; add_header X-Cache $upstream_cache_status; #Set Nginx Cache proxy_set_header Accept-Encoding ""; sub_filter "https://trtest.web" "https://test.web"; sub_filter_once off; add_header Cache-Control no-cache; expires 12h;}#PROXY-END/ laoniu0711 2023-05-16 22:08 3 证书用的同样的泛域名证书 laoniu0711 2023-05-16 22:10 4woc 在论坛里找到了,详见 https://369369.xyz/host/topic/1162311.html 不眠飞行 2023-05-16 22:10 5 还得是你 楼主谢谢