CSS と IMAGES 以外はすべてまったく同じファイルを使用する約 50 のサイトがあります。現在、新しいサイトを作成して異なる CSS と画像をアップロードするたびにファイルを複製しています。
私がやりたいことは、同じDocumentRootを持つように各 vhost を設定してから、css フォルダーと images フォルダーにAliasMatchを追加することです。
#Common Files VHOST
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName commonfiles.com
ServerAlias www.commonfiles.com
DocumentRoot /home/commonfiles/public_html
</VirtualHost>
#Sample vhost for 1 of the 50 sites.
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName mytest.com
ServerAlias www.mytest.com
DocumentRoot /home/commonfiles/public_html
......
AliasMatch /css/(.*) /home/ftpuser/public_html/mycss/$1
</VirtualHost>
エイリアスは、特注のファイルに対しては完全に機能しますが、許可エラーのために共通ファイルにアクセスできません。
[Mon Nov 16 09:31:01 2009] [crit] [client xxx.xxx.xxx.xxx] (13)Permission denied: /home/commonfiles/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
これは、問題の一部であると思われる現在のサーバー設定です (以前のサーバー管理者がこれを設定しました):
- アパッチ(アパッチ/2.2.14 (Unix)
- PHP 5.2.11
- CentOS 4.8 i686 標準
- PHP 5 ハンドラは dso です
- Apache suEXEC がオンになっています
助言がありますか?