Changing ASP.net application root?

后端 未结 3 688
死守一世寂寞
死守一世寂寞 2020-12-15 13:30

So, ASP.net has the concept of an \'application root\'. It is the path part of the URL that corresponds to the root directory that is set for an application in IIS. The ti

3条回答
  •  情歌与酒
    2020-12-15 14:19

    You won't be able to do what you want with the way you have your site/application set up. The application root is just that, the path to the root of your application. If you want your "website" and your "app" to both have "/" as the application root, you'll have to create two websites and make them listen to different host headers (ex: mysite.com and myapp.mysite.com). This way the application root is the root of the website, "/", and not the root of the application folder.

提交回复
热议问题