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