diff options
author | Jonas Smedegaard <dr@jones.dk> | 2012-07-11 14:12:15 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2012-07-11 14:12:15 +0200 |
commit | 303bbad00d80fb8f2477cfd4e9535a83d7f4c1a2 (patch) | |
tree | ef8872016a5d2e47a9f650a36910cfa834d8aa2e /apache2 | |
parent | ec2dd749617b1567cc1c5a7011c652b44e27e24a (diff) |
Use AddType (not FilesMatch) to avoid access denied error.
Diffstat (limited to 'apache2')
-rw-r--r-- | apache2/conf.d/local-php.conf | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apache2/conf.d/local-php.conf b/apache2/conf.d/local-php.conf index fc6e91f..3763394 100644 --- a/apache2/conf.d/local-php.conf +++ b/apache2/conf.d/local-php.conf @@ -1,11 +1,7 @@ # requires: php5 -<FilesMatch "\.ph(p3?|tml)$"> - SetHandler application/x-httpd-php -</FilesMatch> -<FilesMatch "\.phps$"> - SetHandler application/x-httpd-php-source -</FilesMatch> +AddType application/x-httpd-php .php .php3 .phtml +AddType application/x-httpd-php-source .phps # To re-enable php in user directories comment the following lines # (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it # prevents .htaccess files from disabling it. |