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