Forum Moderators: phranque

Message Too Old, No Replies

www cname 404 error

cname www 404 error

         

Nilmoni Basak

7:23 am on Oct 15, 2011 (gmt 0)

10+ Year Member



Hi, my virtual host setup like this;

ServerName domain.com
ServerAlias *.domain.com
VirtualDocumentRoot /var/www/html/domain.com/%1/

now when i trying to open help.domain.com or kb.domain.com its working fine with corresponding folder contain.

and when i assign this help.domain.com to another domain CNAME help.domain2.com (sub domain)its working fine how ever when i poiting it to www.domain2.com (by CNAME www to help.domain.com) its getting 404 error. can some one help me what i am doing wrong why 404 error coming.

phranque

8:12 am on Oct 17, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



your server error log should tell you exactly which resource (file path) is being requested and that might give you hints about what your problem is.

Nilmoni Basak

8:33 am on Oct 17, 2011 (gmt 0)

10+ Year Member



Thanks for your hints, Yes i got the error from error log its searching content here /var/www/html/domain.com/www

when we open a site on www.domain2.com but this folder does not there in server, so i can configure my www?

phranque

10:54 pm on Oct 18, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



if i understand correctly, i think you have to configure the virtual host for your www ServerName first and then configure the virtual host for the wildcard subdomains.