Domain Masking Question

Discussion in 'Web Design and Development' started by zflauaus, May 1, 2008.

  1. zflauaus macrumors 65816

    Nov 19, 2004
    I'm helping a teacher set up a website and we have it running, I just don't like the address. We have a domain bought but all it does is forward to the IP address.

    Here's what I want it to do:

    Instead of showing, I want it to show

    If I set up domain masking, will it show all links as or will it show the folder structure as well?
  2. zflauaus thread starter macrumors 65816

    Nov 19, 2004
  3. exabytes18 macrumors 6502

    Jun 14, 2006
    Suburb of Chicago
    I used to host my site on my own computer and had the same dilemma. It took me forever to figure it out, but the solution is fairly straight forward.

    I believe domain masking has a second server host a simple html file with an iframe of your site. The problem with this is that the URL will always be "" no matter what page you visit.

    The solution is to point the domain at the webserver where your site is actually hosted (change the A record to the webserver's IP). You must also let the webserver know that it should serve pages for requests for "" To do this, you'll have to add a virtual host in the webserver configuration file.

    If anything I've said is incorrect or there's an easier/better way, please correct me. I assume this is for a server that's hosted by the school and so there isn't any utility to automatically do this for you like most hosting companies offer.
  4. MoreBS macrumors newbie

    Apr 29, 2008
    Change the DNS

    As mentioned above, you need to get the DNS record changed on the nameserver.

Share This Page