在使用Yii2高级模板(https://github.com/yiisoft/yii2-app-advanced)之后,它需要前端和后端的不同文档根。如何在OpenShift for Yii2高级模板上设置不同的文档根
Set document roots of your Web server:
for frontend /path/to/yii-application/frontend/web/ and using the URL http://frontend/
for backend /path/to/yii-application/backend/web/ and using the URL http://backend/
在我的本地机器我已经设置了Apache和配置的虚拟主机有一个别名指向后端。
<VirtualHost ..:80>
ServerAdmin ..
ServerName .
DocumentRoot "...\frontend\web"
<Directory "...\frontend\web">
Require all granted
</Directory>
Alias /backend "...d\backend\web"
<Directory "...\backend\web">
Require all granted
</Directory>
</VirtualHost>
但我不知道如何在OpenShift中做到这一点。请让我知道在OpenShift上有没有解决这个问题的方法?
嗨科里等人, 感谢您的回答。我会接受这个答案,因为它告诉我OpenShift如何至少选择文档根目录。 – Sinaru 2014-12-06 07:01:38