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