How to set up different document roots on OpenShift for Yii2 advanced template -
after use yii2 advance template (https://github.com/yiisoft/yii2-app-advanced) needs different documents roots frontend , backend.
set document roots of web server:  frontend /path/to/yii-application/frontend/web/ , using url http://frontend/ backend /path/to/yii-application/backend/web/ , using url http://backend/ in local machine have set apache , configured virtual host have alias point backend.
<virtualhost ..:80>     serveradmin ..     servername .     documentroot "...\frontend\web"     <directory "...\frontend\web">         require granted     </directory>     alias /backend "...d\backend\web"     <directory "...\backend\web">         require granted     </directory> </virtualhost> but can't figure out how in openshift. please let me know if there's solution on openshift?
according release blog post in march (https://blog.openshift.com/openshift-online-march-2014-release-blog/): documentroot chosen cartridge control script logic depending on conditions in following order:
if php/ dir exists documentroot=php/   else if public/ dir exists documentroot=public/   else if public_html/ dir exists documentroot=public_html/   else if web/ dir exists documentroot=web/   else if www/ dir exists documentroot=www/   else documentroot=/  as i’m sure you’ve guessed, makes new openshift app directory structure compatible major upstream php projects, including drupal, wordpress, joomla, zend framework skeleton apps , many others.
Comments
Post a Comment