I've built a complex website and application. The website has the basic www.website.com address. I have several other addresses though (like site.website.com, exchange.website.com, etc) which my application uses to retreive information.

I've got the entire thing working great over the internet with no issues. What I want to do though is set it up locally on a machine with no internet connection. Basically it's setting up a laptop to run the website as if it's on the web, but in actuallity it's not connected. So, when I open up IE and go to http://www.website.com , it actually is pulling up a local web page on my local machine.

I've played with the "host" file deep inside the WINDOWS folder (and several other folders). I can do it for 1 website (www.website.com points to ip address 127.0.0.1) but my application will be using several different websites (local to the machine) and I can't get it to work on more than one.

I see this isn't really a PHP question per se, but my entire website is built in PHP! 😃

Any help would be greatly appreciated!

-Nathan

    The local host file does not support wildcard DNS entries (as you are likely to have running on your public server), so you are stuck adding each entry you are going to use to the host file.

    Of course, you could as well start running your own local DNS server to allow for wildcard DNS records.

      Write a Reply...