How to base my ASP.NET website out of a specific URL directory?

I've got IIS 7 serving up my ASP.NET MVC website. It's the only site that I have configured in IIS. When I access the site, the site is based out of the root URL directory. For example, my site would be accessed like this: http://example.com/index.html

How can I configure the ASP.NET site to be prefixed by a specific URL directory? I'd like it to be something like this: http://example.com/application/index.html

Is this something I do in the ASP.NET configuration or within IIS itself?

Thanks!

Answers


You can create an "Application" for your site (right click on your web site in IIS Manager and choose "Add Application") and give it the directory name that you want. This way you can have, for example, multiple applications under the same domain e.g. http://example.com/application1/whatever and http://example.com/application2/whatever.

This article describes the differences between Sites, Applications and Virtual Directories:

http://www.iis.net/learn/get-started/planning-your-iis-architecture/understanding-sites-applications-and-virtual-directories-on-iis


Need Your Help

CTE and Lag query

sql sql-server-2012

I am trying to achieve a running deductive total, but the problem occurs when I have a zero row. I am using SQL Server 2012.

automator enable/disable/delete action in run applescript

applescript automator

I have an automator workflow with a Run Applescript action. Is it possible to enable/disable/delete another automator action in my Run Applescript? See my previous question for more details.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.