2009-05-21 12:00:24 +00:00
|
|
|
<IfModule mod_php5.c>
|
|
|
|
php_flag display_errors Off
|
|
|
|
php_flag log_errors On
|
|
|
|
php_value error_log syslog
|
|
|
|
|
|
|
|
php_flag safe_mode On
|
|
|
|
php_flag safe_mode_gid On
|
|
|
|
php_value open_basedir /var/www/board
|
|
|
|
php_value safe_mode_exec_dir /var/empty
|
|
|
|
</IfModule>
|
|
|
|
|
2009-07-12 02:08:45 +00:00
|
|
|
<FilesMatch "^(database.*|remind.php|closevotes.php.*)$">
|
2009-05-21 12:00:24 +00:00
|
|
|
Order Deny,Allow
|
|
|
|
Deny from all
|
|
|
|
</FilesMatch>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-05-29 04:07:07 +00:00
|
|
|
<FilesMatch "^(motions?|vote|proxy)\.php$">
|
2009-05-21 12:00:24 +00:00
|
|
|
# these files require authentication
|
|
|
|
<IfModule mod_ssl.c>
|
2009-05-25 11:07:17 +00:00
|
|
|
SSLOptions +OptRenegotiate +StdEnvVars +ExportCertData
|
2009-05-21 12:00:24 +00:00
|
|
|
SSLUserName SSL_CLIENT_S_DN_Email
|
2009-05-21 14:52:26 +00:00
|
|
|
SSLVerifyClient require
|
|
|
|
# <IfModule mod_rewrite.c>
|
|
|
|
# RewriteEngine on
|
|
|
|
# RewriteCond %{SSL:SSL_CLIENT_VERIFY} !=SUCCESS
|
|
|
|
# RewriteRule .? - [F]
|
|
|
|
# ErrorDocument 403 "You need a client side certificate issued by CAcert to access this url"
|
|
|
|
# </IfModule>
|
2009-05-21 12:00:24 +00:00
|
|
|
</IfModule>
|
|
|
|
</FilesMatch>
|