Win7 Environment XAMPP configuration virtualhost problem

Source: Internet
Author: User
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.