如何更改默认的 approot 路径?例如,我想运行一个 Web 根目录为子文件夹的 PHP 框架:
symfony
|_ app
|_ bin
|_ src
|_ web <- Web root
|_ index.php
WebRole 的网络根目录在那里:
WebRole <- Web root
|_ bin
|_ php
|_ resources
|_ WindowsAzureSDKForPHP
|_ diagnostics.wadcfg
|_ Global.asax
|_ Web.config
|_ index.php
ServiceConfiguration.cscfg
ServiceDefinition.csdef
当把两者放在一起时,我得到:
WebRole
|_ bin
|_ php
|_ resources
|_ WindowsAzureSDKForPHP
|_ diagnostics.wadcfg
|_ Global.asax
|_ Web.config
|_ symfony
|_ app
|_ bin
|_ src
|_ web <- Desired web root
|_ index.php
ServiceConfiguration.cscfg
ServiceDefinition.csdef
有没有办法告诉 Windows Azure web root 已经改变了?(Web.config 中的 defaultDocument-setting 是不够的)。
编辑:
在 astaykov 的建议更改之后,结构如下所示:
WebRole
|_ ServiceConfiguration.cscfg
|_ ServiceDefinition.csdef
|_ symfony
|_ app
|_ bin
|_ src
|_ web <- Desired web root
|_ bin
|_ php
|_ resources
|_ WindowsAzureSDKForPHP
|_ diagnostics.wadcfg
|_ Global.asax
|_ Web.config
|_ index.php