Jump to content

Setting Up Kind Of Domain Names On My Localhost


MrAdam

Recommended Posts

I tried googling for this but the lack of key words to use didn't get me very far. I'll explain as best I can though..Basically at work they're always using short, kind of domain names for the different intranet sites. For example:http://nextdeskhttp://infozoneBut they all point to a local server (which is Linux and I'm unfortunately using Windows at home). I was just wondering if anybody knows how you can set this up in Apache? I've actually got the XAMPP package if that makes any difference.Thanks for any help,Adam

Link to comment
Share on other sites

I don't think that has anything to do with the web server software (although I may be wrong), that's just what the computer is called. In Windows you can right-click on My Computer and do Properties, and click the Computer Name tab. There's a button there to change the name if you want, but otherwise you should just be able to use the server's name as the domain. If you're on the same local network as the server you should be able to reach it by name.

Link to comment
Share on other sites

Windows has a hosts file where you can add whatever host names you want to point to whatever IP you want, but normally you just use the computer name. The IIS server in Windows also has a place where you can specify the hostname that you want to use for each site, so you can have one machine that responds to several host names. I assume Apache has some way to control that as well. If you want it to work on more than one computer on the network without changing the hosts file on each machine then you'll need a DNS server running on the network that can do the lookups instead of the hosts file.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...