Hello Everyone - I'm pretty new to this forum. So far i've found some really valuable stuff on here, so thanks! I have 10 windows xp machines that are all networked. On one of the machines I have installed Apache/PHP/MySQL. I was wondering if somebody could tell me how to point an address, for example www.mylocalserver.com (which is directed on the machine from a local folder), on the rest of the 9 machines. The end result would be: Typing in www.mylocalserver.com on the other 9 machines would bring up the "index.htm" file (or whatever it is in the local directory) on the other 9 machines. Thanks in advance! Mike
does the domain have to actually exist or resolve outside your 10 machines? If not the easiest way is to edit the HOSTS files on the other 9 machines and have www .mylocalserver.com resolve to the IP address of the web serving machine.
Thanks so much for the reply! The domain would not have to resolve, it would only need to be available to the 10 computers. So would I need to set anything more than the hosting machines IP address in all of the other machines hosts file? I'm still pretty new to Apache - but on my hosting computer, when I set that domain to point to a local folder, how would that information be recognized by the other systems that are pointing to the hosting machines IP? In other words when I access that IP from another computer, what tells that computer to access that directory?
If you do not have any virtualhosts setup that depend on a said domain name, then once you update the hosts file to go to the IP of your apache server, it should just work fine. However, if you are using virtualhosts, then you 'have' to hit your apache server via the domain name URL. This all sounds way more confusing than it actually is. Once you try a machine or 2 - you'll see the light
No all you would need in the hosts file for the 9 other machines is an entry for www.yourdomain.com and have it resolve to the apache machine's IP address apache will see the request coming in on port 80 and is configured to deliver pages from a specific directory. this is a pretty basic question about web servers.... I would do a bit of reading if I were you.