On Thu, 23 Mar 2006, Dimitri Yioulos wrote:
On Thursday March 23 2006 5:46 pm, serross wrote:I'm new to this so please be patient. I have a standalone Win XP SP2 system with dial up to the Internet which I want to run the Apache web server on to test code before uploading to the web. In the install directions, it says that it will ask for a Network Domain, Server Name in the format |server.mydomain.net. How would I have this for this computer??? Wouldn't I have to have a registered DNS server and a full time connection to an ISP?? TIA SR --Well, I haven't run apache on Windows, but the basic concepts should be the same as in a *nix install: 1) You do have to name your Web server machine. In XP, it's as simple as going to System Properties via My Computer, or Control Panel | System and adding the computer name and domain. 2) You do need to register the domain name with a registrar. The easiest for you might be to have your ISP create the DNS records for your Web server. HTH.
If all you're doing is testing code, you don't really need any of that, and no, you don't need a full time connection. Ignore the machine name in System Properties. When you do the install, specify "localhost" as the server name, nothing more. I'm not completely familiar with the Apache install on Windows, so I can't be certain that it will allow just that. If it doesn't you'll have to do a bit more work. Edit <drive>:\Windows\system 32\drivers\etc\hosts, and look for the line that reads '127.0.0.1 localhost'. Change it to read '127.0.0.1 localhost localhost.localdomain.xxx', replacing 'xxx' with your favorite suffix (it doesn't matter which). And yes, I left localhost in there twice deliberately. Save it, and just because it's Windows, reboot to be on the safe side. Then specify 'localhost.localdomain.xxx' for the Server Name and Network Domain.
This will give you an Apache installation that will respond to all browser requests on that machine directed to "http://localhost" or "http://localhost.localdomain.xxx," depending on which you wound up with. And, it has the added benefit of being unreachable from anywhere _but_ that local machine, so you have no security worries.
-- Craig Dunigan IS Technical Services Specialist Middleware - EIS - DoIT University of Wisconsin, Madison opinions expressed are my own, not the University's --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx