Nested virtual directory or application within sit

2019-02-20 03:32发布

问题:

I would like to nest asp.net web app within sitecore site, something like this:

<sitecore web root folder>
   .
         <virtual directory/app folder>

I want to access sitecore site by using following url:

http://<whatever site name>

and I would like to access web app by using following url:

 http://<whatever site name>/<whatever virtual directory/app alias>

Is this possible?

I tried it but when I try to access my web app (not sitecore) then web app complains about missing sitecore. I believe that is because now I have two config files ans when accessing web app iis/asp.net processing first sitecore web.config.

回答1:

Right, your assumption is correct. See Creating a project in a virtual directory under Sitecore root article for more information about this kind of setup.



回答2:

You should be able to create a virtual app under a Sitecore root path. Because its an app it will use its own app pool and you can have a web.config for it. I guess the physical files will be OUTSIDE of the Sitecore Website folder but the from a URL you can make the virtual app located anywhere below the Sitecore root.