在Azure网站Zend框架1.12.x应用程序中设置文档根目录 [英] Set document root in Zend Framework 1.12.x application in Azure Web Sites

查看:127
本文介绍了在Azure网站Zend框架1.12.x应用程序中设置文档根目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题设置的文档根目录,我想在Azure上运行Zend框架应用程序。

现在我测试网站,云服务和虚拟机的部署我的工作。

与WebMatrix的部署工作正常,但我需要IIS的文档根目录设置为一个子文件夹。

   - 应用程序
- htdocs目录=> Webroot公司与Web.config中
- 库

如何设置呢?用的htdocs内重定向的外部的第二Web.config中?试过了,但IIS似乎并不喜欢它(500err)。

我发现这是建设一个WEBSITE_PRIVATE_EXTENSIONS改变对ApplicationHost.config唯一:的 Azure的PHP文档

这似乎是这似乎过于复杂...


解决方案

  1. 转到门户网站,打开配置选项卡为您的网站

  2. 所有的方式滚动至底部


  3. 修改网​​站\\ 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...

解决方案

  1. Go to Portal and open the CONFIGURE tab for your site
  2. Scroll all the way to the bottom

  3. Change site\wwwroot to point wherever you want to

这篇关于在Azure网站Zend框架1.12.x应用程序中设置文档根目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆