Win7 Environment XAMPP configuration virtualhost problem
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 [email protected]
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
Share to: more
------Solution--------------------
You didn't appoint localhost, of course it is.