Skip to main content

IIS 7.0

More
16 years 4 months ago #26991 by Arani
IIS 7.0 was created by Arani
Hi all
It's been a while since I have ventured here again.
I have been dabbling with IIS 7.0, and I can't seem to get the basic thing right!!!
I have managed to setup the default web page. But I can't seem to be able to setup another web page along with the default web page. I can add another web site, and then add all the other relevant details. The moment I try to access the second non-default web site, I get the http 404.0 error. Also I noticed that IIS was trying to get the web page from the directory of the default website.
e.g. if the default web site directory is C:\DefaultWeb\, and the new website is under C:\WebSite2.
If I try to access Website2, IIS starts looking for it under:
C:\DefaultWeb\Website2, when it should have been looking under:
C:\WebSite2.
Any leads, anyone?

Picking pebbles on the shore of the networking ocean
More
16 years 4 months ago #26993 by S0lo
Replied by S0lo on topic Re: IIS 7.0
Hello Arani,

To have another website with a different root, you need to set a different port number. The default port for the default website is as you know 80. Set the second website to any other port (say 8080). Also make sure the web root folder in IIS is assigned to C:\WebSite2.

Then when you browse the website, type "http://server-name:8080" in the URL box.

Hope this helps.

Studying CCNP...

Ammar Muqaddas
Forum Moderator
www.firewall.cx
More
16 years 4 months ago #26994 by Arani
Replied by Arani on topic Port numbers
Thanks for that, so for future reference, every new web site or web based application that I add to IIS will need to have a new port number?

Picking pebbles on the shore of the networking ocean
More
16 years 4 months ago #26995 by S0lo
Replied by S0lo on topic Re: Port numbers

Thanks for that, so for future reference, every new web site or web based application that I add to IIS will need to have a new port number?


Only if your new website is under a different web root folder. However, You can do it without a new port number if you put the folder of your new web site under the "default site" web root folder (in your case C:\DefaultWeb\). So when you type in the URL "http://server-name/Website2" it will look for it under C:\DefaultWeb\Website2 Just as you said and it will find it this time :)

Studying CCNP...

Ammar Muqaddas
Forum Moderator
www.firewall.cx
More
16 years 4 months ago #26996 by Arani
Replied by Arani on topic ...
Thanks again, only one more query left. Is there a specific rule for allocating port numbers for different web sites, or as long as I remain in the default domain of http port numbers, I would be ok? (obviously, not to put two web sites with the same port number)

Picking pebbles on the shore of the networking ocean
More
16 years 4 months ago #26997 by S0lo
Replied by S0lo on topic Re: IIS 7.0
There is no certain rule. But it's advised to stay away from the "well known port range" 0 to 1023 and the "registered ports range" 1024 to 49151. Pick some thing in 49152 to 65535.

However, even if you use a port from 0 to 49151. it's OK, as long as you don't have another service running in your server using that same port.

By the way 8080 is a registered port for "HTTP alternate", you can use it, no probs.

Studying CCNP...

Ammar Muqaddas
Forum Moderator
www.firewall.cx
Time to create page: 0.140 seconds