Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying asp.net application to root directory in IIS

How can I deploy an asp.net application to the root of an IIS6 webserver? All the applications I've deployed before have been in directories, such as http://www.example.com/app1/. To deploy that for the first time, I've always just gone to the IIS manager, and selected "Create Application" in the properties for that folder.

Now I'm trying to create an application on the root of the web site, like http://www.example.com/. But the property pages are different, and there doesn't seem to be an option to create an application in the root directory.

This is probably very simple, but I can't figure this out.

like image 379
recursive Avatar asked Sep 18 '09 20:09

recursive


People also ask

How do I change the root directory in IIS?

Right-click the directory that you want to mark as an application root, and then click Properties. On the Directory tab, in the Application Settings section, click Create. In the Application name text box, type the name of the application, and then click OK. The virtual directory is now an application root.

What is default web application root directory for IIS?

Most of the times the root directory is C:\inetpub\wwwroot folder and "Default Web Site" on IIS Manager. Open IIS Manager and under Sites there should be IIS websites and under it you will probably see Default website. You can see the root directory with Right click/Settings.


2 Answers

The application settings are on the "Home Directory" tab of the properties for the site (right click on the root node for the site and select properties).

like image 134
John Sheehan Avatar answered Sep 20 '22 12:09

John Sheehan


The root folder is already an application - no need to create one. You deploy the same way - the folder is just "/" instead of "app1/".

like image 42
Paul Alexander Avatar answered Sep 20 '22 12:09

Paul Alexander