Apache Subdomain Name set up

Source: Internet
Author: User
Tags subdomain subdomain name
Apache Subdomain settings
Local environment, the root directory set in the Apache configuration file is d:/appserv/www/, the sub-domain name is configured as follows, put in the configuration file started

Namevirtualhost *:80


ServerName localhost
Serveralias localhost
DocumentRoot d:/appserv/www/


#AllowOverride FileInfo Options
Options None
Order Allow,deny
Allow from all




ServerName Dede
Serveralias Dede
DocumentRoot d:/appserv/www/dede/


#AllowOverride FileInfo Options
Options None
Order Allow,deny
Allow from all




ServerName Ikaihui
Serveralias Ikaihui
DocumentRoot d:/appserv/www/ikaihui/


#AllowOverride FileInfo Options
Options None
Order Allow,deny
Allow from all



Now the situation is: the loss of Dede and Ikaihui can be normal display, lose localhost, Chrome will report this error:
Error 103 (net::err_connection_aborted): Unknown error.

IE can not be opened.
Delete the section of localhost, the loss of localhost will show Dede page, I now want to lose localhost normal display of the WWW folder under the index.php, how to match


------Solution--------------------
See if your anti-virus or firewall is causing it.
------Solution--------------------
You're writing the right thing.
Clear the browser buffer to see
That's how I wrote it.
Namevirtualhost *:80


ServerName localhost
Documentroot/amp/web



ServerName www.a.net
Documentroot/amp/web/www.a.net



ServerName www.b.net
Documentroot/amp/web/www.b.net


------Solution--------------------
Well, you take out the Directory section inside.

------Solution--------------------
Add this look.
Alias/Bind directory "absolute physical path"
  • 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.