问题描述
我在为要在 Azure 中运行的 Zend Framework 应用程序设置文档根目录时遇到问题.
I have a problem setting the document root for a Zend Framework application that I want to run in Azure.
现在我正在测试网站、云服务和 VM 以部署我的工作.
Now I'm testing Web Sites, Cloud Service and VM's to deploy my work.
使用 Webmatrix 部署工作正常,但我需要将 IIS 的文档根目录设置为子文件夹.
Deploying with Webmatrix works fine, but I need to set the document root of IIS to a subfolder.
- application
- htdocs => Webroot with Web.config
- libs
我该如何设置?在 htdocs 之外使用第二个 Web.config 重定向在里面?试过了,但 IIS 似乎不喜欢它 (500err).
How do I set this? With a second Web.config outside of htdocs Redirecting inside? Tried that, but IIS doesn't seem to like it (500err).
我发现的唯一一件事是构建一个 WEBSITE_PRIVATE_EXTENSIONS 来更改 ApplicationHost.config:Azure PHP 文档
The only thing I found was building a WEBSITE_PRIVATE_EXTENSIONS to change the ApplicationHost.config: Azure PHP Documentation
这个好像有点太复杂了……
This seems to be which seems to be overly complicated...
推荐答案
- 转到门户并打开您网站的配置选项卡
一直滚动到底部
- Go to Portal and open the CONFIGURE tab for your site
Scroll all the way to the bottom
将 sitewwwroot
更改为指向您想要的任何位置
Change sitewwwroot
to point wherever you want to
这篇关于在 Azure 网站的 Zend Framework 1.12.x 应用程序中设置文档根目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!