如题,从 github 中 https://github.com/iiYii/getyii clone下源码后想在本地搭建测试一下。
但是这个项目的较为复杂,原来的小项目都直接把域名绑定到 app/web 目录下,这个项目前后台是分离的,那么应该把域名绑定到哪里?
分别尝试了绑到前台 app/frontend/web 下和 app/backend/web 目录下,都会出现错误。尝试谷歌无果。故来此提问,希望大大们能解答。
附上 httpd-vhosts.conf 设置:
DocumentRoot "/Users/M/Documents/Yii/getyii-master/backend/web"
ServerName getyii
ErrorLog "/private/var/log/apache2/sites-error_log"
CustomLog "/private/var/log/apache2/sites-access_log" common
<Directory "/Users/M/Documents/Yii/getyii-master/backend/web">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order deny,allow
Allow from all
Require all granted
</Directory>