?
Solved

Hosting multiple websites on IIS: website vs Application vs Virtual directory

Posted on 2014-03-07
7
Medium Priority
?
1,468 Views
Last Modified: 2014-03-17
I need to host two different asp.net web applications on a new web server. Previously, they were hosted on IIS 6  and were added as a virtual directory each under the Default Website.

Now I am in IIS 7 and need to host those two web applications. If I right-click Default Website and add the two web applications as new Virtual directory or new Application, I can access them as

http://MyWebServer/WebApp1
http://MyWebServer/WebApp2

Which is OK and easy.

But if I right click on "Sites" -> Add Website to add the two applications as Websites, do I have to give them two different hostnames to distinguish? I would like to access the two applications like above mentioned links so the end-users are not confused. I am not sure how their URL's will be if I add them as WebSites.

Can you please give me the advantages of adding as WebSites over Virtual Directory or Application?
If it does not effect performance or speed, I would like to add the web applications as Virtual Directory or Applications. Please advise.
0
Comment
Question by:Angel02
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 2000 total points
ID: 39913239
"But if I right click on "Sites" -> Add Website to add the two applications as Websites, do I have to give them two different hostnames to distinguish?"
You never HAVE to give a web site a DNS name, but you do have to give them a unique IP/port combination.

"I would like to access the two applications like above mentioned links so the end-users are not confused."
Then stick with your virtual directories.
0
 

Author Comment

by:Angel02
ID: 39913355
Should I add them as Applications or Virtual Directories?
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 39913573
Virtual Directories.
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 

Author Comment

by:Angel02
ID: 39918847
If I add as Virtual Directories, they will use the application pool, asp.net version and default document assigned to the default website, correct?

If the default document is different for both my web applications, should I add them as Applciations instead of Virtual directories? Are there any advantages of adding as virtual directory?
0
 
LVL 34

Assisted Solution

by:Paul MacDonald
Paul MacDonald earned 2000 total points
ID: 39920432
As Virtual Directories, they'll use whatever AppPool and .Net version you assign to them.  If you don't change anything, they'll use the default values.

Are there any advantages of adding as virtual directory?
Based on your objective (http://MyWebServer/WebApp1; http://MyWebServer/WebApp2) Virtual Directories are the only way to go.
0
 

Author Comment

by:Angel02
ID: 39932695
If there are no objective to worry about  (like http://mywebserver/WebApp1;http://mywebserver/WebApp2), is there an advantage of adding as websites over adding as virtual directories?
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 39934142
As individual web sites, they can be accessed by their own DNS names (www.website1.com, www.website2.com) versus being accessed at a common URL (www.website.com/VD1, www.website.com/VD2).
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question