Py学习  »  NGINX

带有nginx proxy pass的HTTP 426

Steve Robinson • 4 年前 • 326 次点击  

server {
  listen 80;
  server_name _ localhost; # need to listen to localhost for worker tier

  location / {
    proxy_pass https://mywebsite.com;
    proxy_set_header Host mywebsite.com;
    proxy_set_header X-Real-IP $remote_addr;
  }

}

第一次 /team 路径已访问,工作正常。但随后的请求导致 HTTP 426 Chrome出错。在一个不知名的窗口打开这个功能很好,但有时426也会出错。

Nginx运行在一个ElasticBeanstalk环境中,该环境使用一个应用程序负载均衡器,它接受HTTP/HTTPS请求并将它们转发到应用程序实例的端口80。

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/54909
 
326 次点击