2000-05-28 09:23:56 +00:00
|
|
|
#
|
2000-06-22 09:14:16 +00:00
|
|
|
# Apache/PHP/site settings:
|
2001-10-20 18:57:10 +00:00
|
|
|
# $Id$
|
2000-05-28 09:23:56 +00:00
|
|
|
#
|
|
|
|
|
2000-12-16 09:27:52 +00:00
|
|
|
# Protect files and directories from prying eyes:
|
2001-05-23 13:27:42 +00:00
|
|
|
<Files ~ "(class|conf|CVS|database|Entries|inc|modules|\.module|Repository|Root|script|sh|sql|theme)">
|
2000-12-16 08:39:01 +00:00
|
|
|
order deny,allow
|
|
|
|
deny from all
|
|
|
|
</Files>
|
|
|
|
|
2000-05-28 09:23:56 +00:00
|
|
|
# Customized server error messages:
|
|
|
|
ErrorDocument 400 /error.php
|
|
|
|
ErrorDocument 402 /error.php
|
|
|
|
ErrorDocument 403 /error.php
|
|
|
|
ErrorDocument 404 /error.php
|
|
|
|
ErrorDocument 500 /error.php
|
2000-06-03 09:20:45 +00:00
|
|
|
|
2000-06-22 09:14:16 +00:00
|
|
|
# Overload PHP variables:
|
|
|
|
<IfModule mod_php4.c>
|
2000-09-26 07:34:33 +00:00
|
|
|
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
|
2000-12-30 11:58:14 +00:00
|
|
|
php_value session.auto_start 0
|
2000-11-25 12:59:16 +00:00
|
|
|
php_value session.cookie_lifetime 2000000
|
|
|
|
php_value session.gc_maxlifetime 2000000
|
|
|
|
php_value session.cache_expire 200000
|
2001-09-18 20:36:28 +00:00
|
|
|
php_value session.save_handler user
|
2000-06-22 09:14:16 +00:00
|
|
|
</IfModule>
|
2001-07-14 14:28:32 +00:00
|
|
|
|
|
|
|
# Various rewrite rules
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteRule ^blog/(.*) /module.php?mod=blog&op=view&name=$1 [R]
|
|
|
|
</IfModule>
|