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