I've approximately 50 sites that make use of the identical files apart from CSS and pictures, i presently duplicate the files every time i produce a new site and upload different css and pictures.

Things I want achieve this setup each vhost to achieve the same DocumentRoot adding AliasMatch for that css and pictures folders e.g:

#Common Files VHOST
<VirtualHost xxx.xxx.xxx.xxx:80>
    ServerName commonfiles.com
    ServerAlias www.commonfiles.com
    DocumentRoot /home/commonfiles/public_html

#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

The alias works perfectly for that bespoke files however the common files cant be utilized due to permission errors:

[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

This is actually the current server setup that we think might be area of the problem (Previous Server Admin Set this up):

  • Apache(Apache/2.2.14 (Unix)
  • PHP 5.2.11
  • CentOS 4.8 i686 standard
  • PHP 5 Handler is dso
  • Apache suEXEC is on

Any suggestions?

It seems that automatically the the general public_html folder has permissions of 750, I transformed to 755 and up-to-date outdoorsbasedir limitations and all sorts of began to operate great.

I have to make certain will be able to have b .htaccess per site.

It does not seem such as the AliasMatch may be the problem, the mistake message is pointing for your htaccess file. Perhaps you have checked that for permissions? Wbich user will it fit in with?

Another solution is always to create symbolic links on each domain pointing towards the folder in which the common files reside.