This project is read-only.

Virtual directories under Orchard 1.7

Topics: Core, Installing Orchard
Sep 3, 2013 at 7:41 PM
Good day,

With orchard 1.6 I was able to enclose system.web with

<location path="." inheritInChildApplications="false">

tag and I could run virtual directories under orchard.

With Orchard 1.7 this it's no longer working because of the <system.webServer> section settings. Basically I am getting the 500 error, or at best an empty page.

When I include <system.webServer> in the location, it will then give errors in Orchard.

Here is my virtual directory's web.config:
  <remove name="WarmupHttpModule" />
    <directoryBrowse enabled="false" />
<!-- clear all handlers, prevents executing code file extensions, prevents returning any file contents -->
  <clear />
    <customErrors mode="Off" />

Basically, I have 2 virtual dirs:

1) NopCommerce
2) a Static site.

Is there a way to make them both work, or the only solution is to put all these in parallel sites?
Sep 4, 2013 at 4:04 PM
Solved the static site problem:

<?xml version="1.0" encoding="UTF-8"?>
    <add key="webpages:Enabled" value="false" />
        <!-- iis6 - for any request in this location, return via managed static file handler -->
        <add path="*" verb="*" type="System.Web.StaticFileHandler" />
        <remove name="WarmupHttpModule" />
        <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />

    <handlers accessPolicy="Script,Read">
  iis7 - for any request to a file exists on disk, return it via native http module.
  accessPolicy 'Script' is to allow for a managed 404 page.
        <add name="StaticFile" path="*" verb="*" modules="StaticFileModule" preCondition="integratedMode" resourceType="File" requireAccess="Read" />