Umbraco (4.7) 在子文件夹或虚拟目录中?

发布于 2024-12-14 12:30:35 字数 590 浏览 2 评论 0原文

有人成功将 Umbraco 4.7 安装到子文件夹或虚拟目录中吗?我已经无计可施了。我两者都没有取得成功。

我正在尝试让它工作,所以 mydomain.com/umbracoTest 是 umbraco 站点。

我发现每次都会发生的是,当我安装入门套件时,它永远找不到 umbTopNavigation.xslt,我发现更改皮肤后,它会在我的 umbraco 文件夹中创建一个与安装文件夹同名的子目录(所以如果我的虚拟目录指向 C:\apps\umbracoTest,它会创建一个文件夹 C:\apps\umbracoTest\umbracotest),其中包含 XSLT 文件夹、css、脚本、图像等。所以我复制这些到根应用程序目录,嘿,我不再收到该错误,并且内容实际加载,但没有一个图像/css/脚本工作,因为我可以看到它正在 mydomain.com/images 而不是 mydomain.com/ 中寻找它们umbraco测试/图像。

Umbraco 实际上可以在域的根级别之外发挥作用吗?我到底怎样才能让它工作?

注意:我在 IIS 中正确配置了所有设置。 IUSR、IIS_IUSRS 和网络服务可以完全控制目录,虚拟目录也使用 .NET 4.0 Integrated 配置为应用程序。

Has anyone successfully installed Umbraco 4.7 into a sub folder or virtual directory? I am at the end of my wits here. I have had success with neither.

I am trying to get it working so mydomain.com/umbracoTest is the umbraco site.

What I find happens every time is it can never find the umbTopNavigation.xslt when I install the starter kit, I find out after changing skins, it creates a sub directory in my umbraco folder with the same name as the install folder (so if my virtual directory points to C:\apps\umbracoTest, it creates a folder C:\apps\umbracoTest\umbracotest) which has the XSLT folder, css, scripts, images, etc. So I copy those out to the root app directory and hey I no longer get that error and content actually loads, but none of the images/css/scripts work because I can see it's looking for them in mydomain.com/images instead of mydomain.com/umbracoTest/images.

Can Umbraco actually function not a the root level of a domain? How the heck can I get it working?

NOTE: I configured all the settings properly in IIS. IUSR, IIS_IUSRS, and Network Service have full control of the directory, also the virtual directory is configured as an application using .NET 4.0 Integrated.

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

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

发布评论

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

评论(3

∞梦里开花 2024-12-21 12:30:35

在 umbracoSettings.config 中,有一个设置 ResolveUrlsFromTextString 必须为虚拟目录中的站点打开。

你把它打开了吗?

In umbracoSettings.config there is a setting ResolveUrlsFromTextString that must be turned on for sites in a virtual directory.

Have you turned that on?

淡淡绿茶香 2024-12-21 12:30:35

不,您应该能够在任何子文件夹中安装 Umbraco,但您必须为您的站点设置主机名。

检查此截屏视频,http://cultiv.nl/blog/2010 /2/1/screencast-installing-umbraco/

或者这篇文章,Umbraco 配置了 IIS 7,具有网站 URL 遇到困难?

No you should be able to install Umbraco in any subfolder but you have to set a hostname for your site.

Check this screencast, http://cultiv.nl/blog/2010/2/1/screencast-installing-umbraco/

Or this post, Umbraco configured with IIS 7 having hard time with the site URL?

吃不饱 2024-12-21 12:30:35

默认情况下,Umbraco 不支持在子文件夹中开箱即用地安装,因为 Umbraco 应用程序期望所有内容都从根 (/) 相对定位,但理论上您可以更新所有链接,但这不是我的工作会做的。

最简单的方法是将您的网站设置为子域,例如:umbracotest.mydomain.com

By default Umbraco does not support to installed out of the box in a sub-folder as the Umbraco application will expect everything being relative located from root (/) but in theory you could update all of the links but that would not be a job I would do.

Easiest it to setup your site as a sub-domain instead like: umbracotest.mydomain.com

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