As per question, this is what I'd like to achieve:
Create a separate Web site node in IIS (7) to host a deployed ASP.NET 4 MVC (and Web API) application. I'd like a separate Web site node instead e.g. of creating an Application in IIS under the default web site node. This is in order to have full rights on application web.config, and not to have restrictions if the Web.config is placed in some subfolder.
Say I'm deploying on a development IIS server. Typically the web site node will be located at some URL similar to
some.IP.addr.ess/
. I'd like instead the web site to be located at an URL likesome.IP.addr.ess/some/path/
. This is in order to have the web application ready to work also when deployed in a subfolder. That's also because I'd like to deploy another web app on the same server, and have it accessible fromsome.IP.addr.ess/another/path/
.
To clarify my jumbled requirements :) I'd like to have:
- One IIS web server instance running on a server, with one IP and possibly a domain name.
- Inside the IIS instance, several Web Site nodes, one for each application. An application could be running on ASP.NET MVC/Web API. Another application could be running on PHP. Another could be static HTML pages. Here I'm saying application as a generic term, not necessarily related to an IIS Application.
- If the server has an IP address, say
123.123.123.123
, each application should be reachable at an URL like123.123.123.123/MvcApp1
,123.123.123.123/PhpApp2
, and so on.
I've searched on the web but probably I didn't use the right terms: I always got articles on how to create applications inside the default node, or virtual directories, etc. And then I found this ASP.NET forum post which seems to say I can't. ** Thanks all
EDIT -
Going to the root of the problem, as asked below:
I'd like to refer to the different apps with different URL paths, so e.g. IPaddress/Mvc1, IPaddress/Php2, and so on.
All this is needed for development server, and then for test and staging, not for production. So in the first place there would be no quick need for a domain.
I can live with apps and Web.config in subfolders, or virtual directories, or applications, as long as this does not prevent one each other to work correctly. E.g. an ASP.NET application, next to an ASP.NET MVC with its own routing, and an ASP.NET Web API one, and a PHP one.