真的是关键时候得靠命令行啊!

1. 按照网上指导的方法配置nginx强制http跳转到https

2. 然后本机火狐继续测试成功与否。

3. 结果怎么都不自动跳转

4. 我是对着好几篇博客改过来又改过去!!就是不行呢火狐?

5. 浪费了大把时间后,我试了下wget,结果看到是强制跳转的啊:

1263 $ wget http://www.mobcastlead.com/login.js

--2017-04-14 23:19:37--  http://www.mobcastlead.com/login.js

Resolving www.mobcastlead.com (www.mobcastlead.com)... 101.200.49.230

Connecting to www.mobcastlead.com (www.mobcastlead.com)|101.200.49.230|:80... connected.

HTTP request sent, awaiting response... 301 Moved Permanently

Location: https://www.mobcastlead.com/login.js [following]

--2017-04-14 23:19:37--  https://www.mobcastlead.com/login.js

Connecting to www.mobcastlead.com (www.mobcastlead.com)|101.200.49.230|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 2076 (2.0K) [application/x-javascript]

Saving to: ‘login.js’

你可能感兴趣的:(真的是关键时候得靠命令行啊!)