DNS Question

Discussion in 'General' started by laz99, Jun 10, 2020.

Tags:
  1. laz99

    laz99 New Member

    Hi All,

    If anyone has set there nameservers of their domain to my server they get the default page if anyone types in "domain .com" This all happens without me having to set anything up for them in the control panel. This is great and just what I need it to do.

    My question is... what if they type in "www. domain .com" instead of domain.com ? Can this also be configured somehow to display the default page?

    I am creating a site for domain parking.

    Kind Regards
     
  2. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    it already should. has long as the dns A records exist and point to your server, and your server doesn't have any vhosts containing the requested ServerName or ServerAlias it will display the first available (alphabetically) vhost it knows of.

    I assume this is for 000-default.conf -> ../sites-available/000-default.conf
    you should also make sure there's one for 000-default-ssl.conf -> ../sites-available/000-default-ssl.conf
    so that it also does the same thing for https requests.
     

Share This Page