Custom Build + httpd-suphp.conf + FilesMatch + apache handler

ccto

Verified User
Joined
Feb 24, 2005
Messages
280
Location
Hong Kong
During our testing of regular update of our DA servers, we found -

When we upgrade apache from 2.2.6 to 2.2.9 and suPHP from 0.6.2 to 0.6.3
it will re-write the configuration file - /etc/httpd/conf/extra/httpd-suphp.conf
added some code (especially FilesMatch) -
Code:
<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$">
AddHandler x-httpd-php5 .php5
AddHandler x-httpd-php4 .inc .php .php3 .php4 .phtml
</FilesMatch>

We found that it inhibits us to use DirectAdmin apache handler and add the handler for PHP (AddHandler x-httpd-php5 php in /usr/local/directadmin/data/users/xxxx/httpd.conf) and then switch the PHP from x-httpd-php4 to x-httpd-php5 (In the past it works)

If I tried to remove the FilesMatch in httpd-suphp.conf, it works again.
I am not sure whether it is intended or not.

Original CustomBuild 1.1.8
New CustomBuild 1.1.13

Thank you for your kind attention.

Regards,
 
Back
Top