Help - Subdomains not working properly

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

 




I am trying to get two subdomains setup. I have copied the settings below. The problem is that all requests (even for second subdomain) are being served by first subdomain. e.g. if I type in a URL http://mydomain.com, the file served is from "C:/mydomain/test" and not from "C:/mydomain/www" as I would expect.

Please help. What am I doing wrong?


My hosts file has these entries:
************************************************
127.0.0.1       mydomain.com
127.0.0.1       test.mydomain.com
************************************************


My httpd.conf file has these entries:
************************************************
NameVirtualHost *

<Directory "C:/mydomain/test">
    Options None
    Order allow,deny
    Allow from all
</Directory>
<VirtualHost *>
	ServerName test.mydomain.com
	DocumentRoot C:/mydomain/test
</VirtualHost>


<Directory "C:/mydomain/www">
    Options None
    Order allow,deny
    Allow from all
</Directory>

<VirtualHost *>
	ServerName www.mydomain.com
	DocumentRoot C:/mydomain/www

</VirtualHost>
************************************************


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[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