We're running a different version of PHP for one of the sites, so we've configured fastcgi. But requests to any files, even static css and js is being passed through. How can we limit it to php only? This is the current configuration:
<VirtualHost *:80>
DocumentRoot /services/www/htmlblog
DirectoryIndex index.html index.shtml index.cgi index.php
ServerName 128.199.222.207
ServerAlias www.blog.example.org
<IfModule mod_fastcgi.c>
<FilesMatch \.php$>
SetHandler php-script
</FilesMatch>
FastCgiExternalServer /services/www/htmlblog -host 127.0.0.1:8998 -pass-header Authorization
</IfModule>
<FilesMatch "configuration.php">
Order allow,deny
Deny from all
</FilesMatch>
<Directory "/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I've tried this:
<IfModule mod_fastcgi.c>
AddHandler php5-fcgi .php
Action php5-fcgi /php5-fcgi
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:8998 -pass-header Authorization -idle-timeout 60
</IfModule>
Which serves up the index.php file located in that folder. If I change it to:
FastCgiExternalServer /services/www/htmlblog -host 127.0.0.1:8998 -pass-header Authorization -idle-timeout 60
It again just passes the static files to php-fpm.