Comments:
Posted by
bill Staples
@
22 Nov 2006
17:52
I couldn't agree more ;) I blogged about the ability to add more than one site, and other nice additions in a recent blog post of my own here:
http://blogs.iis.net/bills/archive/2006/10/23/How-I-fell-in-love-with-Vista-this-weekend-_2800_or-why-you_2700_re-gonna-love-IIS7_2F00_Vista-for-Web-development_2900_.aspx
Posted by
Som
@
03 Jan 2007
08:57
That feature is in Apache from day one. Isn't it?
Posted by
Josh
@
03 Jan 2007
09:29
It's been in IIS a long time too - but only in the server versions until Vista.
Posted by
Sue
@
29 May 2009
20:37
I was wondering if anyone could tell me the steps you need to take after installing IIS 7.0 on Vista that will enable your classic .asp pages to be viewed. I'll definitely be setting up multiple websites, but I can't seem to get things going. I've installed everything and have modified my HOSTS file and have set my page for the site to be Index.asp, but I'm getting this error: "HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid." I've always used IIS 5.0 and have worked with IIS 6.0 and have never had this problem, it's always been easy to set up. Thanks for the help!
Posted by
Adryn
@
12 Aug 2009
02:45
Adding additional websites to IIS7 is easy, but how do you connect to the additional websites from another computer. E.g. if my computer with IIS7 has IP 1.2.3.4, from another computer on the network I can just type in
http://1.2.3.4 and get to the default website on my computer with IIS7. But how can I connect to other websites that I added into IIS7?
Posted by
wally
@
12 Aug 2009
03:02
Hi, really very interesting post!
I would ask somebody for a little question: I've on a Vista PC two web server IIS 7.0 and the emule webserver. This last one works on port 4711 and I want to leave it as it is.
I want to have a virtual folder or a virtual application to my IIS default site (i.e.
http://localhost/emule) that redirect it to my emule web server throught the port 80.
If I redirect my virtual folder "./emule" to
http://localhost:4711 it works fine but throught the 4711 port.
I need to access it from an external workstation throught the internet that has ONLY port 80 open. But I cannot set the port 80 for emule server because my IIS has to expose other web applications.
How can do It?
Thanks in advance.
Wally
Posted by
Andrew
@
12 Aug 2009
14:02
Hello
Interesting post. I'm trying to set up multiple websites offline. Back in 2001 I learnt HTML/ASP/PWS and IIS (5 I think). Seeting up mulitple sites was simple.
After an 8 year gap it seems now that we have Vista and IIS7. Things seem to be a lots more complex:
- I need to know about ports
- I need to edit an external text file
- I need to adopt a "trick" to do something quite straightforward
I'm clearly not criticising the author (thanks for you help!) but am I missing something?
A
Posted by
Andrew
@
12 Aug 2009
15:57
OK, boy I was rusty but have learned something. Hopefully things get easier from here on in!
1) High level idea of solution:
a) The overall default page is at C:\inetpub\wwwroot\iisstart.htm
b) Make/store your multiple sites at:
C:\inetpub\wwwroot\folder1
C:\inetpub\wwwroot\folder2
etc, making your own names of course!
c) Create a new page C:\inetpub\wwwroot\index.htm
(or edit C:\inetpub\wwwroot\iisstart.htm)
** Note that you may not be able to edit and save to this folder directly. Save to another folder, then copy across - a nuisance **
d) In the above index.htm write HTML to point to the various start pages, for example:
<html>
<head>
<title></title>
</head>
<body>
<a href="folder1/index.htm">folder1/index.htm</a><br />
<a href="folder2/index.htm">folder2/index.htm</a><br />
</body>
</html>
2) Classic ASP error messages to the browser are turned off by default
a) They can only be turned on globally not on a site-by-site basis
b) This is not a huge problem when developing offline (see reference below for what to do) but online errors are now problematic; system administrators will not easily be persuaded to globally report errors in the browers since this is a security risk (but was allowed before IIS7?)
Solution:
- Offline solution see below
Online...
- move to a dedicated server
- move to a ASP.NET or
- move to Linux + the LAMP environment
3) Numerous other unhelpful defaults
a) Under ASP icon in IIS7:
- set EnableParentPath to True (although consider security online/offline)
Under Debugging Proporties
- set Enable Client Side Debugging to True
- set Enable Server Side Debugging to True
- set Send Error Messages to Browser to True
Now for the really hard stuff:
P Durrant at
http://forum.manifold.net/forum/x54784 says:
#28-Apr-08 06:24
after much random clicking i found that in the IIS settings under ASP --> services --> COM+ properties
Execute In MTA was set to false, i set this to true and everything lept into life
hope this helps
(Well done that man!)
Posted by
Adryn
@
13 Aug 2009
01:20
I've found a solution for accessing different IIS websites from another computer.
E.g, Computer Alpha is running IIS7 and inside it has 3 websites (default, site1, site2). Alpha has an IP of 1.2.3.4 on the local network.
Computer Beta (on the same LAN as Alpha) wants to connect to the IIS7 sites on Alpha using Alpha's IP address (1.2.3.4). If on Beta I type in the browser (IE, Firefox) address bar
http://1.2.3.4/ I see the default site, but I can't access the other 2 sites.
My solution was to add an extra binding to site1 and site2 (which already has a binding of type=http, hostname=site1 or site2, port=80). So I keep these bindings but at the same time I give each of them an extra binding (type=http, hostname= *blank*, port=81 (or some other value, it is important that each the additional binding port number for site1 and site2 be different.)
So now site1 has 2 bindings:
type=http, hostname=site1, port=80
type=http, hostname=, port=81
and same for site2:
type=http, hostname=site2, port=80
type=http, hostname=, port=82
Now from computer beta, if I type in the browser:
http://1.2.3.4/ I get the default site, and if I type in
http://1.2.3.4:81/ I get site1 and
http://1.2.3.4:82/ I get site2.
Posted by
Claire
@
06 Oct 2009
02:52
Thanks very much this has been mysterious to me for a long time, now delving into umbraco it becomes a necessity to run more than 1 website in the root. This post helps a lot & saves typing cryptic port numbers.
Posted by
andiwivs
@
26 May 2010
06:09
Thanks Adryn, exactly what I've been trying to achieve for a long time. And it gives me the best of both worlds, ie simple local paths and accessible external ones. Cool.