Solved

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

Posted on 2014-03-07
7
1,342 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
Technology Partners: 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FTP servers in Windows 2008 5 94
Passing credentials through NET USE without hard coding the password? 8 71
Services disabled 1 27
DNS Record Manupluation 11 41
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

732 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