浏览 4.9k
浏览器访问服务器https://IP:50443,
服务器会返回地址https://IP:50443/portal/ui/login?service=https%3A%2F%2FIP%3A50443%2Fportal%2F
nginx配置
location / {
root html;
# index index.html index.htm;
proxy_pass https://IP:50443;
}

按点赞数排序
按时间排序

当遇到反向代理302错误和静态资源403错误时,可以采取几个步骤来解决问题。以下是帮助您的一般指南:
请记住,所提供的步骤是通用指南,实际的解决方案可能取决于特定的配置和环境。如果在完成这些步骤后仍然遇到问题,建议您查阅文档或向反向代理或Web服务器供应商寻求支持。
0
回答于2023-06-12 17:34
如果是三次握手没有成功,需要在nginx及上游,分别用tcpdump/wireshark抓包看下,是SYN还是ACK报文丢失了,是在哪个节点丢失的,再来分析为何会丢失,又该如何恢复。
wireshark抓包参见我讲的这一课:https://time.geekbang.org/course/detail/100026801-100973
tcpdump抓包参见这里:https://time.geekbang.org/course/detail/100026801-118169
第1种。参考官方文档:
“When buffering is enabled, nginx receives a response from the proxied server as soon as possible, saving it into the buffers set by the proxy_buffer_size and proxy_buffers directives. If the whole response does not fit into memory, a part of it can be saved to a temporary file on the disk. Writing to temporary files is controlled by the proxy_max_temp_file_size and proxy_temp_file_write_size directives.
When buffering is disabled, the response is passed to a client synchronously, immediately as it is received. nginx will not try to read the whole response from the proxied server. The maximum size of the data that nginx can receive from the server at a time is set by the proxy_buffer_size directive.”
微信公众号
加入微信群