Click here to Skip to main content
11,583,555 members (65,148 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET3.5
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.1K
Comments
Rajesh Anuhya at 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 at 30-Jan-12 3:16am
   
My 5.
I credited your answer and added some clarifications in my answer, please see.
--SA
thatraja at 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
0 OriginalGriff 430
1 Dave Kreskowiak 230
2 Richard Deeming 220
3 Sergey Alexandrovich Kryukov 220
4 virusstorm 203
0 OriginalGriff 1,523
1 Sergey Alexandrovich Kryukov 995
2 Abhinav S 696
3 Dave Kreskowiak 621
4 Suvendu Shekhar Giri 568


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 30 Jan 2012
Copyright © CodeProject, 1999-2015
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