Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

zflauaus

macrumors 65816
Original poster
Nov 19, 2004
1,166
3
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?
 
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.
 
Change the DNS

As mentioned above, you need to get the DNS record changed on the nameserver.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.