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