Domain Masking Question

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

  1. zflauaus macrumors 65816

    Joined:
    Nov 19, 2004
    #1
    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 10.0.0.1/folder1/folder2/index.htm, I want it to show domain.com/folder1/folder2/index.htm.

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

    Joined:
    Nov 19, 2004
  3. exabytes18 macrumors 6502

    Joined:
    Jun 14, 2006
    Location:
    Suburb of Chicago
    #3
    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 "yourdomain.com" 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 "yourdomain.com." 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

    Joined:
    Apr 29, 2008
    #4
    Change the DNS

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

Share This Page