httpd 2.0.54 VHost not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've Apache httpd version 2.0.54 on Redhat Linux Fedora 4. I'm trying to configure name based virtual hosts on it. Here are the relavent fragments from the httpd.conf:

DocumentRoot /var/www/html

NameVirtualHost 10.76.6.1:80

<VirtualHost 10.76.6.1:80>
    DocumentRoot /var/www/html/sub
    ServerName sub.mydomain.com
</VirtualHost>

<VirtualHost 10.76.6.1:80>
    DocumentRoot /var/www/html/www
    ServerName www.mydomain.com
</VirtualHost>

The problem is that none of the virtual hosts is working.
For example, when I request a document with Hostname as sub.mydomain.com it returns files from the default root /var/www/html. If the virtual host were working, then it should return files from /var/www/html/sub.

Am I missing something??

Thanks in advance,
Anand Nalya




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux