42 lines
1.1 KiB
ApacheConf
42 lines
1.1 KiB
ApacheConf
#
|
|
# Apache/PHP/site settings:
|
|
#
|
|
|
|
# Archive feature:
|
|
<Files archive>
|
|
ForceType application/x-httpd-php
|
|
</Files>
|
|
|
|
# Protect files and directories from prying eyes:
|
|
<Files ~ "(class|conf|CVS|database|Entries|inc|modules|*.module|Repository|Root|script|sh|sql|theme)">
|
|
order deny,allow
|
|
deny from all
|
|
</Files>
|
|
|
|
# Syndicate content:
|
|
<Files export>
|
|
ForceType application/x-httpd-php
|
|
</Files>
|
|
|
|
# Customized server error messages:
|
|
ErrorDocument 400 /error.php
|
|
ErrorDocument 402 /error.php
|
|
ErrorDocument 403 /error.php
|
|
ErrorDocument 404 /error.php
|
|
ErrorDocument 500 /error.php
|
|
|
|
# Overload PHP variables:
|
|
<IfModule mod_php4.c>
|
|
php_value php_register_globals 1
|
|
php_value track_vars 1
|
|
php_value magic_quotes_gpc 1
|
|
php_value magic_quotes_runtime 0
|
|
php_value magic_quotes_sybase 0
|
|
php_value session.name DROPID
|
|
php_value session.auto_start 0
|
|
php_value session.cookie_lifetime 2000000
|
|
php_value session.gc_maxlifetime 2000000
|
|
php_value session.cache_expire 200000
|
|
php_value session.save_path /tmp/dropsessions
|
|
</IfModule>
|