MrAdam Posted February 3, 2009 Share Posted February 3, 2009 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 More sharing options...
justsomeguy Posted February 3, 2009 Share Posted February 3, 2009 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 More sharing options...
MrAdam Posted February 3, 2009 Author Share Posted February 3, 2009 I see! I did see somewhere for Linux you could achieve this, errrr..http://www.linuxquestions.org/questions/li...calhost-682266/.. Mainly looking at the first guys reply, not so much the actual question! Is there anything like that in Windows? Also everythings on the same machine so can't change the name.Thanks for your reply,Adam Link to comment Share on other sites More sharing options...
justsomeguy Posted February 3, 2009 Share Posted February 3, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.