2004-09-09 10:36:43 +00:00
|
|
|
#
|
2014-04-23 12:48:27 +00:00
|
|
|
# The following lines prevent .user.ini files from being viewed by Web clients.
|
2004-09-09 10:36:43 +00:00
|
|
|
#
|
2014-04-23 12:48:27 +00:00
|
|
|
<Files ".user.ini">
|
|
|
|
Require all denied
|
|
|
|
</Files>
|
2013-01-16 15:42:18 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Allow php to handle Multiviews
|
|
|
|
#
|
2013-01-12 10:55:09 +00:00
|
|
|
AddType text/html .php
|
2004-09-09 10:36:43 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Add index.php to the list of files that will be served as directory
|
|
|
|
# indexes.
|
|
|
|
#
|
|
|
|
DirectoryIndex index.php
|
2005-04-01 12:01:20 +00:00
|
|
|
|
2017-11-17 07:26:13 +00:00
|
|
|
#
|
|
|
|
# Redirect to local php-fpm (no mod_php in default configuration)
|
|
|
|
#
|
2022-06-09 08:19:29 +00:00
|
|
|
<IfModule !mod_php.c>
|
2017-11-17 07:26:13 +00:00
|
|
|
# Enable http authorization headers
|
|
|
|
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
|
|
|
|
|
|
|
|
<FilesMatch \.(php|phar)$>
|
|
|
|
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
|
|
|
|
</FilesMatch>
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
#
|
|
|
|
# mod_php is deprecated as FPM is now used by default with httpd in event mode
|
|
|
|
# mod_php is only used when explicitly enabled or httpd switch to prefork mode
|
|
|
|
#
|
2014-04-23 12:48:27 +00:00
|
|
|
# mod_php options
|
2017-11-17 07:26:13 +00:00
|
|
|
#
|
2022-06-09 08:19:29 +00:00
|
|
|
<IfModule mod_php.c>
|
2014-04-23 12:48:27 +00:00
|
|
|
#
|
|
|
|
# Cause the PHP interpreter to handle files with a .php extension.
|
|
|
|
#
|
2017-05-06 06:50:19 +00:00
|
|
|
<FilesMatch \.(php|phar)$>
|
2014-04-23 12:48:27 +00:00
|
|
|
SetHandler application/x-httpd-php
|
|
|
|
</FilesMatch>
|
2012-09-17 14:34:56 +00:00
|
|
|
|
2014-04-23 12:48:27 +00:00
|
|
|
#
|
|
|
|
# Uncomment the following lines to allow PHP to pretty-print .phps
|
|
|
|
# files as PHP source code:
|
|
|
|
#
|
|
|
|
#<FilesMatch \.phps$>
|
|
|
|
# SetHandler application/x-httpd-php-source
|
|
|
|
#</FilesMatch>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Apache specific PHP configuration options
|
|
|
|
# those can be override in each configured vhost
|
|
|
|
#
|
|
|
|
php_value session.save_handler "files"
|
|
|
|
php_value session.save_path "/var/lib/php/session"
|
|
|
|
php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache"
|
2016-06-27 13:05:34 +00:00
|
|
|
|
|
|
|
#php_value opcache.file_cache "/var/lib/php/opcache"
|
2014-04-23 12:48:27 +00:00
|
|
|
</IfModule>
|