【发布时间】:2016-05-23 07:43:42
【问题描述】:
我想在 azure webrole 上设置 Laravel 框架,并且必须更改文档根目录,但到目前为止我找不到如何做到这一点
我的部署项目文件夹:
├──webrole <- now this is document root
│ ├──app
│ ├──bin
│ ├──bootstrap
│ ├──config
│ ├──database
│ ├──public <- I want make this as document root
│ ├──resources
│ ├──storage
│ ├──tests
│ ├──vendor
│ ├──.env
│ ├──.env.example
│ ├──.gitattributes
│ ├──.gitignore
│ ├──artisan
│ ├──composer.json
│ ├──composer.lock
│ ├──gulpfile.js
│ ├──package.json
│ ├──phpspec.yml
│ ├──phpunit.xml
│ ├──readme.md
│ ├──server.php
│ ├──Web.cloud.config
│ └──Web.config
├──deploymentSettings.json
├──ServiceConfiguration.Cloud.cscfg
├──ServiceConfiguration.Local.cscfg
├──ServiceDefinition.csdef
我找到了这个Change approot path of Windows Azure WebRole,但这是一个很老的问题,没有得到批准的答案
我发现的唯一一种解决方法是使用重写规则,但我认为这并不安全...
【问题讨论】: