Set document root in Zend Framework 1.12.x application in Azure Web Sites

我的梦境 提交于 2019-12-04 06:25:23

问题


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:


  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



来源:https://stackoverflow.com/questions/24505574/set-document-root-in-zend-framework-1-12-x-application-in-azure-web-sites

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!