BaserCMSをより早くする方法を見つけたので書いています。(現在のバージョン 1.60)
私の非力なテストサーバーでは、かなりパフォーマンスが向上しましたので紹介いたします。
条件: サーバーのroot権限を持っていること。
ドメイン名:rainbow7.com
DocumentRoot: /home/rainbow7.com/www
BaserCMSの、 トップページ(index.php)があるフォルダーと /app/webroot/ フォルダーにある
「.htaccess」 を別の名前にリネームしてください。(.htaccess 無効)
そして、 apacheのconf (httpd.conf)に.htaccessの内容を下記内容にしてみてください。
————————————————————————————————————–
<VirtualHost *:80>
ここにはバーチャルホストの設定が入る。
<Directory “/home/rainbow7.com/www”>
RewriteEngine on
# RewriteBase /
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</Directory>
<Directory “/home/rainbow7.com/www/app/webroot”>
RewriteEngine on
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</Directory>
</VirtualHost>
—————————————————————————————————————-
引き続き、早くなる方法も模索していこうと思います。
なか