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