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