httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish kulkarni <>
Subject Virtual Host in Apache 1.3.22 on Win2000 and WinNT
Date Wed, 16 Jan 2002 21:03:49 GMT
I am have installed Apache 1.3.22 webserver on my
windows 2000 server and also windows NT server.
I have problem in setting virtual host on my server,
Here is the snippet of the httpd.conf file.
ServerName pfizer-maps
DocumentRoot "C:/Program Files/Apache
## virtual host setting
NameVirtualHost pfizer-maps
<VirtualHost pfizer-maps>
    ServerName http://as400-maps
    DocumentRoot "C:/application/maps"
<Directory />
    Options FollowSymLinks
    AllowOverride None
<Directory "C:/application/maps">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    ErrorLog logs/
    CustomLog logs/ common
When i go to command promt and try this command
apache -S
i get this output 
VirtualHost configuration:     is a NameVirtualHost
 default server http://as400-maps (c:/program
files/apache group/apache/conf/httpd.conf:1051)

port 80 namevhost http://as400-maps (c:/program
files/apache group/apache/conf/httpd.conf:1051)

Now the problem is when i access the website by using
http://pfizer-maps , i go to the virtual host root
and also if i type
http://as400-maps , i go to the virtual host root
I think that i should be able to go to different root
directories when i use different server names
So what is the problem, how can i solve it


Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message