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
|
|
|
|
2014-04-23 12:48:27 +00:00
|
|
|
# mod_php options
|
|
|
|
<IfModule mod_php5.c>
|
|
|
|
#
|
|
|
|
# Cause the PHP interpreter to handle files with a .php extension.
|
|
|
|
#
|
|
|
|
<FilesMatch \.php$>
|
|
|
|
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"
|
|
|
|
</IfModule>
|
2014-07-31 06:05:55 +00:00
|
|
|
|
2014-07-31 07:27:25 +00:00
|
|
|
# Redirect to local php-fpm if mod_php is not available
|
2014-07-31 06:05:55 +00:00
|
|
|
<IfModule !mod_php5.c>
|
|
|
|
<FilesMatch \.php$>
|
2015-07-17 07:20:23 +00:00
|
|
|
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
|
2014-07-31 06:05:55 +00:00
|
|
|
</FilesMatch>
|
|
|
|
</IfModule>
|