The VirtualHost configuration file is modified as follows: Open localhost entered is the www.ucobub.com, configuration file The following questions please help advise.
1. configuration file: C:\Windows\System32\drivers\etc\hosts
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
#:: 1 localhost
127.0.0.1 localhost
127.0.0.1 www.ucobub.com
2. configuration file: E:\xampp\apache\conf\extra\httpd-vhosts
# DocumentRoot is the root directory where the site files are stored
# ServerName is a site domain name that needs to be consistent with DNS-directed domain names
#
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "E:\xampp\htdocs\ucenter"
ServerName www.ucobub.com
Errorlog "Logs/ucobub.com-error.log"
Customlog "Logs/ucobub.com-access.log" common
3. configuration file: E:\xampp\apache\conf\httpd.conf
# Virtual Hosts
Include conf/extra/httpd-vhosts.conf
Reply to discussion (solution)
What's the problem?
Access to localhost directly points to the set www.ucobub.com that path went up,
You didn't appoint localhost, of course it is.
Thanks for the comment upstairs.