HTTPS is modified to the HTTP troubleshooting process

Source: Internet
Author: User

through nginx Proxy, send the request to the back-end Tomcat Server, and the requested information is passed to the back-end server:

Proxy_http_version 1.1;

Proxy_set_header Connection "";

Proxy_set_header Host $host;

Proxy_set_header X-real-ip $remote _addr;

Proxy_set_header x-forwarded-for$proxy_add_x_forwarded_for;

because the back-end program in the jump when the use of automatic jump (no longer the page to send requests), resulting in jump failure, in the browser development tool can be seen to be limited because the browser is using the HTTPS protocol, but received the return of HTTP, to intercept it. (only provide the way to view, the specific error is not recorded)

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/85/24/wKioL1ea68KB5BIhAADfTxI1yNE604.png-wh_500x0-wm_3 -wmp_4-s_3043158256.png "style=" float:right; "title=" 1.png "alt=" Wkiol1ea68kb5bihaadftxi1yne604.png-wh_50 "/>

Finally, the reason is that the development of colleagues in the write jump code assembly path is, by mistake, the HTTPS protocol interception, resulting in the assembled path is the HTTP protocol, blocked by the browser. The specific workaround is to add the following in the relevant method:

<propertyname= "Redirecthttp10compatible" value= "false"/>

Troubleshooting tips:

1. You can see the specific error reasonthrough the development tool's console bar, very good.


This article is from the "Operation and maintenance of the Road" blog, please be sure to keep this source http://lrtao2010.blog.51cto.com/10425744/1831669

HTTPS is modified to the HTTP troubleshooting process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.