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