使用环境:phpStudy 2018
PHP版本:7.2.10-NTS
出现问题:可以使用虚拟域名访问,无法使用 127.0.0.1 和 localhost 访问
解决方法:
将 httpd.conf
(D:\program\phpStudy\PHPTutorial\Apache\conf\httpd-conf
) 中的代码的注释关闭,并重启服务器即可。
# Include conf/extra/httpd-vhosts.conf
使用环境:phpStudy 2018
PHP版本:7.2.10-NTS
出现问题:可以使用虚拟域名访问,无法使用 127.0.0.1 和 localhost 访问
解决方法:
将 httpd.conf
(D:\program\phpStudy\PHPTutorial\Apache\conf\httpd-conf
) 中的代码的注释关闭,并重启服务器即可。
# Include conf/extra/httpd-vhosts.conf