Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Site Viewing

Status
Not open for further replies.

smeeks

Programmer
Oct 7, 2003
31
US
I am new to this IIS thing....so please be patient. If I have multiple sites set up on IIS and I want to look at EACH locally on the server...how do I do this? I know I can type in the IP of the machine or localhost and see the default web site, but how do I view the others?

PS. I am running IIS 6.
Thanks.
 
You have to use host headers if you have setup multiple site in IIS and arent using virtual directory.

To add hostheaders to a site load the IIS console right click the site > properties > Web Site Tab > Advanced > add

You will also have to add extra things to DNS for correct pointers either that or edit your host file.


 
Or just go into the IIS management console, expand the web sites area, then right click on the site you want to see and click browse.
 
Thanks. I set up DNS and it worked great!
 
Question on this one.

I've a stand alone server and workgroup seperate from my domain. Do I've tot setup on that server a new DNS Server.

I kind of having the same problem of hosting more sites on one IIS and I can't get it done ...

 
If you already have a DNS server running on your network hosting the zone for the domain you wish to use then no you dont need to setup another server.

Just manualy add the A or CNAME records into the zone for that domain to point to the IP/HOST of your webserver.

Once you have created the correct A/CNAME records create a new site entering the correct host header information when asked to during the setup.

If you already have the sites created then goto the properties of the site, Goto "Web Site" tab, Click "Advanced", click "new", Enter the hostheader value in the bottom box.

 
I've a DNS Server running in the domain , but is it secure to add a Server who doesn't belong to the domain ?

The hostheaders , is it the full qualified name like
 
It shouldnt stop you adding your own enteries to the dns server if its secure.

 
Hi,

I've tried everything but i'm doing something wrong and i don't know what.

I've added the hostheaders. The DNS adjusted and still it won't go to the exact site. I did the following

Created a new site, added the hostheader, I pointed to the startpage of the site (the Site is an asp.net application).

The firewall has been setup to sent everyting through port 80 to the server and i get the error Forbidden ...

I'dont use the default site, but to test i setup the site on the default and then it works fine. What i'm i doing wrong ?
 
Did you check permissions on your web directory to make sure IUSR_(machinename) has permissions? If your getting the forbidden error....it sounds like a permissions issue with IIS? What version of IIS are you using? There are some .config files that need to be configured properly in IIS6...if your using .asp, not sure if that's the version you are using?
 
The user has rights because we can access the site internally without a problem.

We use IIS 6.0, the config is adjusted ok and it's asp.NET 1.1 . De site is now online but from the default, when i move it he says forbidden and the rights are the same.

 
Have you checked the following:

Another thing that throws a "forbidden" error is when there is no default document in a directory and you don't have permissions to browse the directory contents. Perhaps you need to tweak the default document(s) for your website.

If so....I'm still thinking.
 
To be exact :
If a copy everything in the default folder of IIS, then the site works on
If a create a new wesbite with hostheader and put the site in there, i get the message forbidden. When i type .

But when i type then (where companyweb is the website) then it works. So there must be a setting that's not correct to go to the exacte website in IIS.

The default document is Index.html and it has been added and works.

But I read in another forum that you have to do something else in your DNS ? Is that correct ? I what would that be
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top