1ceb81
#
1ceb81
# The following lines prevent .user.ini files from being viewed by Web clients.
1ceb81
#
1ceb81
<Files ".user.ini">
1ceb81
    Require all denied
1ceb81
</Files>
1ceb81
1ceb81
#
1ceb81
# Allow php to handle Multiviews
1ceb81
#
1ceb81
AddType text/html .php
1ceb81
1ceb81
#
1ceb81
# Add index.php to the list of files that will be served as directory
1ceb81
# indexes.
1ceb81
#
1ceb81
DirectoryIndex index.php
1ceb81
1ceb81
#
1ceb81
# Redirect to local php-fpm (no mod_php in default configuration)
1ceb81
#
456590
<IfModule !mod_php.c>
1ceb81
    # Enable http authorization headers
1ceb81
    SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
1ceb81
1ceb81
    <FilesMatch \.(php|phar)$>
1ceb81
        SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
1ceb81
    </FilesMatch>
1ceb81
</IfModule>
1ceb81
1ceb81
#
1ceb81
# mod_php is deprecated as FPM is now used by default with httpd in event mode
1ceb81
# mod_php is only used when explicitly enabled or httpd switch to prefork mode
1ceb81
#
1ceb81
# mod_php options
1ceb81
#
456590
<IfModule  mod_php.c>
1ceb81
    #
1ceb81
    # Cause the PHP interpreter to handle files with a .php extension.
1ceb81
    #
1ceb81
    <FilesMatch \.(php|phar)$>
1ceb81
        SetHandler application/x-httpd-php
1ceb81
    </FilesMatch>
1ceb81
1ceb81
    #
1ceb81
    # Uncomment the following lines to allow PHP to pretty-print .phps
1ceb81
    # files as PHP source code:
1ceb81
    #
1ceb81
    #<FilesMatch \.phps$>
1ceb81
    #    SetHandler application/x-httpd-php-source
1ceb81
    #</FilesMatch>
1ceb81
1ceb81
    #
1ceb81
    # Apache specific PHP configuration options
1ceb81
    # those can be override in each configured vhost
1ceb81
    #
1ceb81
    php_value session.save_handler "files"
1ceb81
    php_value session.save_path    "/var/lib/php/session"
1ceb81
    php_value soap.wsdl_cache_dir  "/var/lib/php/wsdlcache"
1ceb81
1ceb81
    #php_value opcache.file_cache   "/var/lib/php/opcache"
1ceb81
</IfModule>