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