问题
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
Scroll all the way to the bottom
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