# some apache settings
Options -Indexes

# register globals must be off
php_flag register_globals off

# magic quotes must be off
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off

# The maximum POST limit. To upload large files, this value must be larger than upload_max_filesize.
php_value post_max_size 31M
php_value upload_max_filesize 30M

# For debugging only
# make sure apache/php can write this file, or else no errors are logged!
php_flag  log_errors on
php_value error_log errors.txt

# Deny access to config.php, config.php.dist, debug.php, debug.php.dist, defaults.php
# because they could become a security vulnerability when accessible
# Better safe then sorry
<IfVersion < 2.4>
	<FilesMatch "^(config|debug|defaults|init)\.php">
	    Deny from all
	</FilesMatch>
</IfVersion>

<IfVersion >= 2.4>
	<FilesMatch "^(config|debug|defaults|init)\.php">
	   <RequireAll>
	       Require all denied
	   </RequireAll>
	</FilesMatch>
</IfVersion>
