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