httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [users@httpd] CNAME and A records not working?
Date Wed, 08 Mar 2006 04:22:43 GMT
Been rackin my brain on this one

I have a vhost in apache called it have a serveralias of  I used to use a DNS CNAME for the and then 
create another virtual host for that too.  So i had 2 virtual host 
containers for almost every site seems a bit cleaner and more sensible 
to just omit the CNAME in DNS and add a serveralias in apache.  This 
save me the bother of maintaining another entire virtual host container 
for each site.  Is one more correct than the other  they both seem to 
work ok but it is kinda confusing.  Note and 
point to the same server and the same content all  work well. 

Anyway here is my problem There is also another record in my DNS named it points to a different vhost named 
also on the same  server.  I am using as a email 
portal for several sites so i added CNAMES to the DNS for these sites 
like so    IN CNAME

this does not seem to work  so i tried an A record   IN A

this does not seem to work either apache seems to pick up the connection 
but it takes me to the first virtual host listed in the httpd.conf file  I need apache to accept the connection and redirect me  Why doenst this work i have a similar setup on a 
different server and i works fine with CNAMES could it be the 
serveralias thingy as i do not use it on the other server the one that 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message