Agreed that this is what I have done in the past but only on a server. Since I only care about running this on localhost, IP wouldn't be an issue right (127.0.0.1)? But I'd never done this in IIS on XP before and though that an a minimum you must be running some sort of DNS service (or some other service). Let me see if that works...though I'm pretty sure I've tried it and it does not, at least in XP. Thanks.
Main Topics
Browse All Topics





by: jeffkearnsPosted on 2004-05-07 at 19:16:40ID: 11019745
You'll need to do two things. 1) Host headers in IIS and 2) host records in your hosts file. I'm using Win2K, so things might be a little different for you, but at least you'll be pointed in the right direction.
etc\hosts and add a line like this for each site you'll have:
1) In IIS, open the properties of each site that is on your machine. On the Web Site tab, click the Advanced button. Highlight the identity of the site and click Edit. Enter the full name (dev.workingsite.com) in the Host Header Name field. Or, if you're setting a site up fresh, simply enter the full name (dev.workingsite.com) in the Host Header field of the dialog box.
2) Edit your hosts file which is located in C:\WinNT\system32\drivers\
192.168.1.100 dev.workingsite.com
Finally, since you're entering an IP address in the file above, you'll need to make sure your IP address stays the same. This isn't much of a problem for a desktop, but could be a problem for a laptop.
Jeff