在Azure网站Zend框架1.12.x应用程序中设置文档根目录 [英] Set document root in Zend Framework 1.12.x application in Azure Web Sites
问题描述
我有一个问题设置的文档根目录,我想在Azure上运行Zend框架应用程序。
现在我测试网站,云服务和虚拟机的部署我的工作。
与WebMatrix的部署工作正常,但我需要IIS的文档根目录设置为一个子文件夹。
- 应用程序
- htdocs目录=> Webroot公司与Web.config中
- 库
如何设置呢?用的htdocs内重定向的外部的第二Web.config中?试过了,但IIS似乎并不喜欢它(500err)。
我发现这是建设一个WEBSITE_PRIVATE_EXTENSIONS改变对ApplicationHost.config唯一:的 Azure的PHP文档
这似乎是这似乎过于复杂...
- 转到门户网站,打开配置选项卡为您的网站
-
所有的方式滚动至底部
-
修改
网站\\ wwwroot文件
指向无论你想
I have a problem setting the document root for a Zend Framework application that I want to run in Azure.
Now I'm testing Web Sites, Cloud Service and VM's to deploy my work.
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
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).
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
Change
site\wwwroot
to point wherever you want to
这篇关于在Azure网站Zend框架1.12.x应用程序中设置文档根目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!