ojek
ojek

Reputation: 10056

ASP.NET MVC - how do I add subsite (ASP.NET) to my application?

I have an ASP.MVC site running at http://mysite.com. Now, I want to add subapplication to it, as mentioned here: http://www.wiris.com/plugins/docs/ckeditor (point 2.2). I tried adding new application, but it doesn't let me add new application at http://mysite.com, since there is already one defined. How can I make it work?

Upvotes: 2

Views: 1009

Answers (1)

Andrew Cooper
Andrew Cooper

Reputation: 32576

There are two ways to do this.

The first would be to create the new application in a sub-path of the parent application. So the app URL would be http://mysite.com/mysubsite.

The alternative would be to have the sub-site listening on a different port (port 81, for example). The the URL would be http://mysite.com:81. The catch with this solution is that users would need to know the port your site is listening on, or only be able to get to it by following a link.

Upvotes: 2

Related Questions