Apache configures multiple virtual hosts. Localhost cannot access the solution. apachelocalhost
In httpd-vhosts.conf, redirect localhost
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "D:/PHPAPACHERUN"
ServerName localhost
ErrorLog "logs/dummy-host2.example .com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
If the result of accessing 127.0.0.1 is not what you want, it may be because there are multiple in httpd-vhosts.conf, and the address 127.0.0.1 is parsed in order, and it is parsed to the first One, just modify the address of DocumentRoot or adjust the order.
http://www.bkjia.com/PHPjc/966283.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/966283.htmlTechArticleApache configures multiple virtual hosts and localhost cannot access the solution. apachelocalhost is in httpd-vhosts.conf, redirect localhost VirtualHost *:80 ServerAdmin webmaster@dummy-host2.exam...