Recommended Posts

Sorry I know this is an absolute noob question and I actually have tried using Microsoft's articles to get it up and running but it doesn't appear to work. For the first time I am using IIS7. I have never used IIS before (apache guy :) ). So anyway I'm trying to set it up where if I type in www.mysite.com it actually is on my computer instead of going to www.mysite.com. Can II7 do this? Apache could do similar things with virtual ips/directories. That way it's like I'm running the site but it's not on the offical site. I tried using the Add Site option and everytime I click browse site it says Error connection to mysite.com server could not be found or something to that effect. What am I doing wrong?

Link to comment
https://www.neowin.net/forum/topic/828532-noob-question-for-iis7/
Share on other sites

Well you need to make sure that www.mysite.com resolves to your machines IP for starters..

Your IIS is listening on a IP.. Lets say your machine is 192.168.1.100

When you put in your browser for www.mysite.com it asks your dns for the IP of the host www.mysite.com -- which Im going to guess is not 192.168.1.100 ;)

Put in a host file on your machine to show that www.mysite.com is 192.168.1.100.

When you want to get to the actual site, on the public server somewhere - your going to have to remove this query.

Or simpler method is just access the site on IIS by the IP address or local name of the box, etc.

I think your confused with how apache does it -- it does it the same way.. If you want to access a web server, by a specific name you have to make sure that host resolves to the IP address the webserver is listening on.

As to having multiple sites on the same IP, virtual hosts in apache -- or host headers in IIS.

Has nothing to do really with what your asking -- to get the IIS on your local machine, your going to have to use a name that resolves local machines IP that IIS is listening on.. This does not matter if its apache, IIS4, 5, 6 or IIS7 -- or any other webserver for that matter.

ok, that makes sense. I actually tried to find the dns service in vista to enable, other then the client dns. I am guessing this is a win server service. How do I find a host file or create one that is recognized by the computer? Thanks for your help so far :)

nvm, google solved that question. Thanks for the help :)

  sathenzar said:
one more quick question. I located the HOSTS file for vista. I put this line in:

127.0.0.1 drslabs.com

It just says it couldn't find the site still. Am I doing it wrong? I have the bindings to www.drslabs.com:80 in IIS7

www.drslabs.com and drslabs.com is not the same address. Try adding 127.0.0.1 www.drslabs.com

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.