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