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