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
dc4f1dc
# mod_php options
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>
6e876c1
620b02e
# Redirect to local php-fpm if mod_php is not available
6e876c1
<IfModule !mod_php5.c>
3920d6f
  <IfModule !mod_php7.c>
41c7e62
    # Enable http authorization headers
41c7e62
    SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
41c7e62
b2791b6
    <FilesMatch \.(php|phar)$>
737a735
        SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
6e876c1
    </FilesMatch>
3920d6f
  </IfModule>
6e876c1
</IfModule>