前端nginx,同时启用http和https服务,但是在https页面内不允许加载 http的请求、服务器端重定向时会返回http导致页面不加载也就是请求不到资源,修改nginx配置,关键配置如下:在server段增加:proxy_redirect http:// $scheme://; port_in_redirect on; proxy_set_header Host $host:$se...
时光匆匆,记录是对思维的沉淀.
前端nginx,同时启用http和https服务,但是在https页面内不允许加载 http的请求、服务器端重定向时会返回http导致页面不加载也就是请求不到资源,修改nginx配置,关键配置如下:在server段增加:proxy_redirect http:// $scheme://; port_in_redirect on; proxy_set_header Host $host:$se...