File chive.conf of Package chive
Alias /chive "/srv/www/chive"
<Directory /srv/www/chive>
Options FollowSymLinks
Order Allow,Deny
Allow from All
<IfModule mod_autoindex.c>
IndexIgnore */*
</IfModule>
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /chive/
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php?__chive_rewrite_on=1&%{QUERY_STRING}
RewriteRule ^$ index.php?__chive_rewrite_on=1&%{QUERY_STRING}
</IfModule>
</Directory>
<Directory /srv/www/chive/protected>
Order allow,deny
Deny from all
</Directory>
<Directory /srv/www/chive/yii>
Order allow,deny
Deny from all
</Directory>
<Directory /srv/www/chive/yii/cli/views/webapp/protected>
Order allow,deny
Deny from all
</Directory>
<Directory /srv/www/chive/yii/cli/views/webapp/themes/classic/views>
Order allow,deny
Deny from all
</Directory>