2011-02-25 15:41:08 +01:00
|
|
|
<Directory @ap_docroot@/@name@>
|
2016-11-05 04:02:34 +01:00
|
|
|
Options FollowSymLinks
|
|
|
|
AllowOverride None
|
|
|
|
|
|
|
|
<IfModule mod_php5.c>
|
|
|
|
php_admin_flag register_globals off
|
|
|
|
php_admin_flag magic_quotes_gpc off
|
|
|
|
php_admin_flag allow_url_include off
|
|
|
|
php_admin_flag allow_url_fopen off
|
|
|
|
php_admin_flag zend.ze1_compatibility_mode off
|
2016-11-10 15:40:40 +01:00
|
|
|
php_admin_flag safe_mode Off
|
|
|
|
php_admin_value open_basedir "@ap_docroot@/@name@:/var/lib/php5:/tmp:@docdir@/@name@:/etc/@name@:/proc/meminfo:/proc/stat"
|
|
|
|
# customize suhosin
|
|
|
|
php_admin_value suhosin.post.max_array_index_length 256
|
|
|
|
php_admin_value suhosin.post.max_totalname_length 8192
|
|
|
|
php_admin_value suhosin.post.max_vars 2048
|
|
|
|
php_admin_value suhosin.request.max_array_index_length 256
|
|
|
|
php_admin_value suhosin.request.max_totalname_length 8192
|
|
|
|
php_admin_value suhosin.request.max_vars 2048
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
<IfModule mod_php7.c>
|
|
|
|
php_admin_flag register_globals off
|
|
|
|
php_admin_flag magic_quotes_gpc off
|
|
|
|
php_admin_flag allow_url_include off
|
|
|
|
php_admin_flag allow_url_fopen off
|
|
|
|
php_admin_flag zend.ze1_compatibility_mode off
|
2016-11-05 04:02:34 +01:00
|
|
|
php_admin_flag safe_mode Off
|
2016-12-06 16:33:21 +01:00
|
|
|
php_admin_value open_basedir "@ap_docroot@/@name@:/var/lib/php7:/tmp:@docdir@/@name@:/etc/@name@:/proc/meminfo:/proc/stat"
|
2016-11-05 04:02:34 +01:00
|
|
|
# customize suhosin
|
|
|
|
php_admin_value suhosin.post.max_array_index_length 256
|
|
|
|
php_admin_value suhosin.post.max_totalname_length 8192
|
|
|
|
php_admin_value suhosin.post.max_vars 2048
|
|
|
|
php_admin_value suhosin.request.max_array_index_length 256
|
|
|
|
php_admin_value suhosin.request.max_totalname_length 8192
|
|
|
|
php_admin_value suhosin.request.max_vars 2048
|
|
|
|
</IfModule>
|
|
|
|
|
2011-02-25 15:41:08 +01:00
|
|
|
</Directory>
|
|
|
|
<Directory @ap_docroot@/@name@/libraries>
|
2016-11-05 04:02:34 +01:00
|
|
|
|
|
|
|
<IfVersion < 2.4>
|
|
|
|
Order allow,deny
|
|
|
|
Deny from all
|
|
|
|
</IfVersion>
|
|
|
|
|
|
|
|
<IfVersion >= 2.4>
|
|
|
|
<IfModule !mod_access_compat.c>
|
|
|
|
Require all denied
|
|
|
|
</IfModule>
|
|
|
|
<IfModule mod_access_compat.c>
|
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
|
|
|
</IfModule>
|
|
|
|
</IfVersion>
|
|
|
|
|
2011-02-25 15:41:08 +01:00
|
|
|
</Directory>
|
|
|
|
|