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

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

问题描述

我在为要在 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...

推荐答案

  1. 转到门户并打开您网站的配置选项卡
  2. 一直滚动到底部

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

sitewwwroot 更改为指向您想要的任何位置

Change sitewwwroot to point wherever you want to

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

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