Revision #8 has been created by MadAnd on Apr 27, 2015, 10:19:04 PM with the memo:
Added mention of FollowSymlinks for Apache
« previous (#7) next (#9) »
Changes
Title
unchanged
yii2-app-advanced on single domain (Apache, Nginx)
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
yii2, yii2-app-advanced, nginx, single domain, apache, htaccess
Content
changed
[...]
### Apache
`DocumentRoot` directive is NOT AVAILABLE in .htaccess file context! You should edit you httpd.conf or virtual host config file. Or modify corresponding setting in the hosting configuration interface.
Also make sure that `FollowSymlinks` option is active for a virtual host.
Example virtual host config:
~~~[...]
ServerName example.com
DocumentRoot "/path/to/project/frontend/web"
Options +FollowSymlinks
...
</VirtualHost>
~~~
### Nginx[...]