diff options
Diffstat (limited to 'php.conf')
-rw-r--r-- | php.conf | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,8 +1,9 @@ # # Cause the PHP interpreter to handle files with a .php extension. # -AddHandler php5-script .php -AddType text/html .php +<FilesMatch \.php$> + SetHandler application/x-httpd-php +</FilesMatch> # # Add index.php to the list of files that will be served as directory @@ -11,10 +12,12 @@ AddType text/html .php DirectoryIndex index.php # -# Uncomment the following line to allow PHP to pretty-print .phps +# Uncomment the following lines to allow PHP to pretty-print .phps # files as PHP source code: # -#AddType application/x-httpd-php-source .phps +#<FilesMatch \.phps$> +# SetHandler application/x-httpd-php-source +#</FilesMatch> # # Apache specific PHP configuration options |