Orchard 中的目录列表被拒绝

发布于 2024-12-17 15:08:19 字数 109 浏览 4 评论 0原文

我有一个新的 Orchard 站点,在本地运行时成功运行设置和数据库配置。但是,当我尝试将其部署到实际服务器并将浏览器指向该站点时,我收到“目录列表被拒绝”错误。

有人见过这个并修复它吗?

I have a new Orchard site which successfully runs the setup and database configuration when running locally. But when I tried to deploy it to the actual server and point a browser to the site, I get a "Directory Listing Denied" error.

Anyone seen this and fixed it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一个人的旅程 2024-12-24 15:08:19

我想通了。在共享 Web 服务器上运行时,如果为我的站点配置 IIS 以使用默认应用程序池,则 Orchard 无法读取自己的文件。 (请记住,Orchard 使用库并需要对子目录进行深度读/写访问)。

因此,解决方案只是将站点配置为在其自己的隔离应用程序池中运行。

在我网站的控制面板上看起来像这样:

在此处输入图像描述

希望这个解决方案可以帮助别人。

I figured it out. Running on a shared web server, if IIS is configured for my site to use the default app pool, Orchard is precluded from reading its own files. (Remember that Orchard uses libraries and needs deep read/write access to subdirectories).

So the solution was simply to configure the site to run in its own isolated application pool.

Looks like this on my site's control panel:

enter image description here

Hope this solution helps someone down the line.

幸福丶如此 2024-12-24 15:08:19

我的猜测是您部署了整个源代码而不是 src/orchard.web。

My guess is that you deployed the whole source code instead of src/orchard.web.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文