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