Solved

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

Posted on 2014-03-07
7
1,147 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
  • 4
  • 3
7 Comments
 
LVL 33

Accepted Solution

by:
paulmacd 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 33

Expert Comment

by:paulmacd
ID: 39913573
Virtual Directories.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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 33

Assisted Solution

by:paulmacd
paulmacd 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 33

Expert Comment

by:paulmacd
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

Are end users causing IT problems again?

You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

Join & Write a Comment

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
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.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

759 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now