apache 2 vhost

Discussion in 'Installation/Configuration' started by sebikmik, Jul 20, 2006.

  1. sebikmik

    sebikmik New Member

    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.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    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
     
  3. latcarf

    latcarf New Member

    though they never responded as to whether this helped... thanks!!! it did for me.

    Lance
     

Share This Page