Apache cannot access the solution when multiple virtual hosts are configured with localhost. apachelocalhost. Apache configuration of multiple virtual host localhost access solution, apachelocalhost in the httpd-vhosts.conf, redirect localhostVirtualHost *: 80ServerAdminwebmaster@dummy-host2.exam apache configure multiple virtual host localhost access solution, apachelocalhost
In the httpd-vhosts.conf, redirect localhost
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "D:/PHPAPACHERUN"
ServerName localhost
ErrorLog "log/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
And if the result of accessing 127.0.0.1 is not what you want, it may be because of the httpd-vhosts.conf, there are multiple , The address 127.0.0.1 is parsed in order, resolved to the first one, modify the DocumentRoot address or adjust the order.
Localhost cannot access solution, apachelocalhost in httpd-vhosts.conf, redirect localhost VirtualHost *: 80 ServerAdmin webmaster@dummy-host2.exam...