Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sub-Website in IIS - ASP.NET

I have a asp.net website in the IIS which is available on internet as www.xyz.com now I have been asked to prepare another website which will be accessed via www.xyz.com/abc.

For this, do I need to create a virtual directory under the website folder XYZ in IIS? or is there any other way to achieve this.

like image 932
Zerotoinfinity Avatar asked Jan 20 '11 13:01

Zerotoinfinity


People also ask

What are virtual directories in IIS?

A virtual directory is a directory name (also referred to as path) that you specify in Internet Information Services (IIS) 7 and map to a physical directory on a local or remote server.

What is the difference between virtual directory and application in IIS?

Virtual directories and applications are now separate objects, and they exist in a hierarchical relationship in the IIS configuration schema. Briefly, a site contains one or more applications, an application contains one or more virtual directories, and a virtual directory maps to a physical directory on a computer.


2 Answers

You need to make the subdirectory an IIS application.

Keep in mind that inner apps like yours will be inheriting configurations from the top-most web configuration, so be careful clearing those settings you don't want in the child applications.

like image 188
Matías Fidemraizer Avatar answered Sep 22 '22 01:09

Matías Fidemraizer


Yes a virtual directory will work, however note that if abc is a full-blown app you will have to add it as an application not as a virtual directory

like image 31
The_Butcher Avatar answered Sep 21 '22 01:09

The_Butcher