[CentOS] Virtualhost, Alias & Subdomains

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



I am having a problem with subdomains, alias & virtual hosts
Centos 4.3, Apache 2.0.52 & PHP 5.04
I can get the primary to work, but not the aliased servers.
http.conf extract
*********
NameVirtualHost *
<VirtualHost *>
ServerName www.domain.com
DocumentRoot /var/www/html/domain/
ServerAlias
www.altdomain.com
</VirtualHost>
 
<VirtualHost *> 
ServerName subdomain.domain.com 
DocumentRoot /var/www/html/subdomain/
ServerAlias
www.subdomain.altdomain.com
</VirtualHost>
**********
 
dave
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux