hello, i have a domain name zzz.com, an a record a.zzz.com and 2 cname recods b.zzz.com and c.zzz.com. the dns server is configure good. i have also a ubuntu dapper installed on my pc and i want to configure apache 2 to respond only if a client access b.zzz.com. if a client access a.zzz.com or c.zzz.com the server must not responding. thank you.
Configure two virtual hosts for Apache. The first one is the default virtual host the respinds with "403 Forbidden" or something, the second one is the vhost for b.zzz.com. If someone types in a.zzz.com in his browser, he will get the 403 error. Also have a look here: http://httpd.apache.org/docs/2.0/vhosts/name-based.html