xampp vhosts-不需要的重定向到https
我在windows计算机上使用xampp 这是我的httpd-vhosts.conf文件:xampp vhosts-不需要的重定向到https,https,xampp,localhost,vhosts,Https,Xampp,Localhost,Vhosts,我在windows计算机上使用xampp 这是我的httpd-vhosts.conf文件: <VirtualHost *:80> DocumentRoot "F:/xampp/htdocs" ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot "F:/xampp/htdocs/2018_xxx.de/public" ServerName xxx.dev
<VirtualHost *:80>
DocumentRoot "F:/xampp/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "F:/xampp/htdocs/2018_xxx.de/public"
ServerName xxx.dev
<Directory "F:/xampp/htdocs/2018_xxx.de/public">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
在调用像或这样的URL时,一切都很好
但是,呼叫被重定向到,我得到一个类似这样的中止页面(firefox 59):连接不安全-您的连接不安全
通过Chrome、Safari和Opera,我得到了类似的结果。唯一有效的浏览器是Edge-yikes
如何避免重定向到https?在这里找到了我问题的简单答案:
简单的解决方案是:停止使用.dev扩展名,比如我的新博客.test。test可以很好地用于操作。您可能希望使用不同的示例url-您使用的示例url有一个习惯,即指向某个地方。。。
127.0.0.1 localhost
127.0.0.1 xxx.dev