Fix Wampserver,apache Open virtual host localhost unreachable

Source: Internet
Author: User

Http-vhost.conf:

# Virtual Hosts

#

# Required Modules:mod_log_config


# If you want to maintain multiple domains/hostnames on your

# machine your can setup VirtualHost containers for them. Most configurations

# Use of name-based virtual hosts so the server doesn ' t need to worry about

# IP addresses. This was indicated by the asterisks in the directives below.

#

# documentation at

# <URL:http://httpd.apache.org/docs/2.4/vhosts/>

# for further details before your try to setup virtual hosts.

#

# The command line option '-s ' to verify your virtual host

# configuration.


#

# VirtualHost Example:

# Almost any Apache directive could go into a VirtualHost container.

# The first VirtualHost section was used for all requests and that does not

# match a ServerName or Serveralias in any <VirtualHost> block.

#


######################################

# <virtualhost *:80>

# ServerAdmin [email protected]

# documentroot "C:/apache24/docs/dummy-host.example.com"

# ServerName Dummy-host.example.com

# Serveralias Www.dummy-host.example.com

# errorlog "Logs/dummy-host.example.com-error.log"

# customlog "Logs/dummy-host.example.com-access.log" common

# </VirtualHost>


# <virtualhost *:80>

# ServerAdmin [email protected]

# documentroot "C:/apache24/docs/dummy-host2.example.com"

# ServerName Dummy-host2.example.com

# errorlog "Logs/dummy-host2.example.com-error.log"

# customlog "Logs/dummy-host2.example.com-access.log" common

# </VirtualHost>


<virtualhost *:80>

ServerAdmin [email protected]

DocumentRoot "d:/apachewww/"

ServerName localhost

Serveralias localhost

Errorlog "Logs/dummy-host.localhost-error.log"

Customlog "Logs/dummy-host.localhost-access.log" common

</VirtualHost>


<virtualhost *:80>

DocumentRoot "d:/apache/www/"

ServerName cms.local.com

</VirtualHost>




Fix Wampserver,apache Open virtual host localhost unreachable

Related Article

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.