Posted by:
eddywebs
(---.static.stls.mo.charter.com)
Hi , I had been trying add a new vhost to wamp
edited the httpd-vhosts.conf to include Virtual hosts
and added the new vhost at httpd-vhosts.conf , but cant make it run , using apache 2.2.11
here is how the httpd-vhosts.conf looks like
-----------------------
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:[
httpd.apache.org];
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
<Directory C:/wamp/www/>
Order Deny,Allow
Allow from all
</Directory>
<Directory C:/wamp/www/advisorcheck>
Order Deny,Allow
Allow from all
</Directory>
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/advisorcheck"
ServerName advisorcheck
</VirtualHost>
<VirtualHost *:80>
ServerAdmin
webmaster@dummy-host2.localhostDocumentRoot "C:/wamp/www"
ServerName localhost
</VirtualHost>
----------------------------------------------