Hello all,
I am running Windows Server 2003 as a DNS server and using WAMP for apache.
I am having a lot of trouble tring to get virtual hosts working here is my vhosts file.
"#
# 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:# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# 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>
ServerName blogs.example.com
ServerAlias blogs
DocumentRoot C:/wamp/</VirtualHost>
<VirtualHost *:80>
ServerName example.com
DocumentRoot C:/wamp/</VirtualHost> "
and when ever i go to, for example, "blogs.example.com" it show me the site at example.com
Any help would be great.
I am running Windows Server 2003 as a DNS server and using WAMP for apache.
I am having a lot of trouble tring to get virtual hosts working here is my vhosts file.
"#
# 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:# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# 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>
ServerName blogs.example.com
ServerAlias blogs
DocumentRoot C:/wamp/</VirtualHost>
<VirtualHost *:80>
ServerName example.com
DocumentRoot C:/wamp/</VirtualHost> "
and when ever i go to, for example, "blogs.example.com" it show me the site at example.com
Any help would be great.