rik*_*han 1 ssl redirect magento apache2 ubuntu-16.04
我有 ubuntu 16.04,我在 apache2 mysite.dev 文件中设置了虚拟主机 /etc/apache2/sites-available/mysite.conf
<VirtualHost *:80>
ServerName mysite.dev
ServerAlias *.mysite.dev
DocumentRoot /var/www/mysite
<Directory /var/www/mysite>
Options FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
它工作正常,直到昨天,我都能够在 Firefox 和 chrome 浏览器中通过链接http://mysite.dev/访问我的网站,但昨天我运行了以下升级命令
sudo apt-get upgrade
Run Code Online (Sandbox Code Playgroud)
重新启动后,它开始将我的应用程序重定向到httpsie https://mysite.dev/并显示
ERR_CONNECTION_REFUSED
Run Code Online (Sandbox Code Playgroud)
出于显而易见的原因
请注意:我不想要修复ERR_CONNECTION_REFUSED而是我希望我的网站开始工作http并停止将其重定向到https浏览器,
我有以下版本
另请注意,我正在运行 PHP 7.0 Magento 2.2 并且不打算从 mysite.dev 更改虚拟主机域
更新:以下是对curl -v http://mysite.dev -o saved
* Rebuilt URL to: http://mysite.dev/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 127.0.0.1...
* Connected to mysite.dev (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> Host: mysite.dev
> User-Agent: curl/7.47.0
> Accept: */*
>
0 0 0 0 0 0 0 0 --:--:-- 0:00:30 --:--:-- 0< HTTP/1.1 200 OK
< Date: Fri, 06 Apr 2018 09:03:36 GMT
< Server: Apache/2.4.29 (Ubuntu)
< Set-Cookie: store=english; expires=Sat, 06-Apr-2019 09:03:42 GMT; Max-Age=31536000; path=/; domain=mysite.dev; HttpOnly
< Set-Cookie: PHPSESSID=gbvs8fq6q9g67t9jd0bjl71ad4; expires=Fri, 06-Apr-2018 10:03:43 GMT; Max-Age=3600; path=/; domain=mysite.dev; HttpOnly
< Expires: Thu, 06 Apr 2017 09:03:44 GMT
< Cache-Control: max-age=0, must-revalidate, no-cache, no-store
< Pragma: no-cache
< X-Magento-Cache-Control: max-age=0, must-revalidate, no-cache, no-store
< X-Magento-Cache-Debug: MISS
< X-Magento-Tags: FPC
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< X-Frame-Options: SAMEORIGIN
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=UTF-8
<
{ [15607 bytes data]
100 95593 0 95593 0 0 3065 0 --:--:-- 0:00:31 --:--:-- 24219
* Connection #0 to host mysite.dev left intact
Run Code Online (Sandbox Code Playgroud)
小智 8
最新版本的 chrome 会出现此问题。此 (.dev) 域自 2017 年起不可用。请查看以下链接https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/
| 归档时间: |
|
| 查看次数: |
3001 次 |
| 最近记录: |