我有 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 …