Jump to content

Setting Up Kind Of Domain Names On My Localhost


MrAdam
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...