Fight off : CNAME not working

5 posts / 0 new
Last post
#1 Fri, 08/08/2008 - 13:43
clenoma

Fight off : CNAME not working

Hello, After one week of fight with my server, it won... I have installed a clean version of CentOs on a server, and then installed VirtualMin using the .sh script.

My server is working, I can display a page using my domain name anoxya.com However, the www is not working, I know that's coming from the Cname, but i don't know why that's not working...

Here is my DNS Record :

@ IN SOA ns1.anoxya.com. mail.live.com. ( 1216939099 1000 1000 604800 1000 )

${DOM}. IN A ${IP} ${DOM}. IN NS ns1.anoxya.com. ${DOM}. IN NS ns2.anoxya.com. ns1.anoxya.com. IN A ${IP} ns2.anoxya.com. IN A ${IP} www.${DOM}. IN CNAME ${DOM}.

I used a webservice to check my dns, and I got an issue with the www:

WWW Error WWW A Record ERROR: I could not get any A records for www.anoxya.com!

I dont understand why that's not working, the domaine name is pointing to the good folder on the server, but the www is pointing to the server, but cannot find the folder. Is that coming from the configuration of apache ?

Here is my httpd.conf <VirtualHost 91.121.152.81:80> SuexecUserGroup "#500" "#501" ServerName www.anoxya.com ServerAlias anoxya.com lists.anoxya.com DocumentRoot /home/anoxya/public_html ErrorLog /home/anoxya/logs/error_log CustomLog /home/anoxya/logs/access_log combined ScriptAlias /cgi-bin/ /home/anoxya/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 <Directory /home/anoxya/public_html> Options Indexes IncludesNOEXEC FollowSymLinks allow from all AllowOverride All </Directory> <Directory /home/anoxya/cgi-bin> allow from all </Directory> Alias /dav "/home/anoxya/public_html" Alias /pipermail "/var/lib/mailman/archives/public" <Location /dav> DAV On AuthType Basic AuthName anoxya.com AuthUserFile /home/anoxya/etc/dav.digest.passwd Require valid-user ForceType text/plain Satisfy All </Location> RedirectMatch /cgi-bin/mailman/([^/])(.) "https://anoxya:10000/virtualmin-mailman/unauthenticated/$1.cgi$2" RedirectMatch /mailman/([^/])(.) "https://anoxya:10000/virtualmin-mailman/unauthenticated/$1.cgi$2" SSLEngine off <Location /svn> DAV svn SVNParentPath /home/anoxya/svn AuthType Basic AuthName anoxya.com AuthUserFile /home/anoxya/etc/svn.basic.passwd Require valid-user AuthzSVNAccessFile /home/anoxya/etc/svn-access.conf Satisfy All </Location>

</VirtualHost>

Can somebody is wise enough to find out how to solde this issue ?<br><br>Post edited by: clenoma, at: 2008/08/08 13:44

Fri, 08/08/2008 - 13:58
Joe
Joe's picture

So you've modified the Apache configuration a bit from what Virtualmin generates (which uses the name of the domain for the ServerName and creates a ServerAlias for www.domain.tld). That doesn't make a difference, of course...but I'm not sure why you'd want to do it that way.

And you definitely have an A record for www.anoxya.com, so I don't know why the web service you checked with is complaining. But your whois record looks really strange (it lists no name servers...which is...strange).

Anyway, I'm guessing maybe the NameVirtualHost entry is wrong on your system. Maybe. It's certainly something to do with the way you've got virtual hosting setup.

--

Check out the forum guidelines!

Fri, 08/08/2008 - 14:34 (Reply to #2)
clenoma

Thanks for your reply joe.
I've played a lot with my server, and i've probably make some mistakes.
I'll will retart from a clean version tomorrow.

Fri, 08/08/2008 - 14:45 (Reply to #3)
Joe
Joe's picture

<div class='quote'>I've played a lot with my server, and i've probably make some mistakes.
I'll will retart from a clean version tomorrow. </div>

Without understanding of past mistakes, we are destined to repeat them. ;-)

I'd recommend fixing the problems with the current installation rather than starting over and making the same mistakes again (and again, and so on).

--

Check out the forum guidelines!

Fri, 08/08/2008 - 14:35 (Reply to #4)
ronald
ronald's picture

also
The SOA record is:
Primary nameserver: ns1.anoxya.com.anoxya.com

looks like you forgot the . after the name

Topic locked