Click here to Skip to main content
12,401,984 members (27,888 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: .NET3.5 .NET
I would like to host multiple applications on the same IIS. The problem is I need to use the same URL like www.example.com, but different directories. Also the port needs to be 80, or at least transparent to the end user, so I'd like to have something like his:

www.example.com/app1

www.example.com/app2

The problem is IIS does not let me create 2 sites with the same domain and the same port and I don't wanna use subdomains if possible.

Both apps should not be on the same site since they are separate applications with different mantainance schedules.

Is there a way to do this? Or do I have to use subdomains?
Posted 29-Jan-12 20:12pm
vsiddi1.2K
Comments
Rajesh Anuhya 30-Jan-12 2:18am
   
IIS version??
--RA
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
SAKryukov 30-Jan-12 3:16am
   
My 5.
I credited your answer and added some clarifications in my answer, please see.
--SA
thatraja 30-Jan-12 8:34am
   
5!
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

From the standpoint of the HTTP server, "www.example.com/app1" and "http://www.example.com/app2" are not different applications. You can always do it with no hassles.

Different domain or sub-domain, different schema (HTTPS instead of HTTP) or different is what can make a difference for a server and this is also possible, please see the answer by Uma.

—SA
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 30 Jan 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100