Solved

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

Posted on 2014-03-07
7
1,391 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 500 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 500 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

718 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