找到你要的答案

Q:Browser forcing https when http is entered on localhost

Q:当浏览器强制HTTPS HTTP输入localhost

I have a local PHP development environment set up on my windows box. I am using WAMP for the php/apache install.

When I navigate to my php app (http://localhost:8040) for some reason the browser replaces http with https. This causes me to be unable to go to my site on localhost since https is not enabled for the site or port 8040.

It used to not do this and behave normally. Then all of a sudden the browser (or perhaps local server) started forcing https.

Is there anything I can do to stop this behavior or debug why it is happening?

我有一个本地的PHP开发环境在我的窗户框设置。我使用WAMP的PHP和Apache安装。

当我浏览我的PHP应用程序(http:/ /本地:8040)由于某种原因,浏览器取代HTTP和HTTPS。这使我无法去我的网站在本地由于HTTPS不是网站或8040端口启用。

它习惯于不这样做和行为正常。然后突然浏览器(或者本地服务器)开始强迫HTTPS。

我能做些什么来阻止这种行为或调试为什么发生这种情况?

php  apache  https