source: github/.htaccess

Last change on this file was 0016cde, checked in by Thomas Bruederli <thomas@…>, 3 months ago

Fix rewrite rule to actually prevent access to bin/ and SQL/ directories

  • Property mode set to 100644
File size: 1.3 KB
Line 
1# AddDefaultCharset     UTF-8
2AddType text/x-component .htc
3
4<IfModule mod_php5.c>
5php_flag        display_errors  Off
6php_flag        log_errors      On
7# php_value     error_log       logs/errors
8
9php_value       upload_max_filesize     5M
10php_value       post_max_size           6M
11php_value       memory_limit            64M
12
13php_flag        zlib.output_compression         Off
14php_flag        magic_quotes_gpc                Off
15php_flag        magic_quotes_runtime            Off
16php_flag        zend.ze1_compatibility_mode     Off
17php_flag        suhosin.session.encrypt         Off
18
19#php_value      session.cookie_path             /
20php_flag        session.auto_start      Off
21php_value       session.gc_maxlifetime  21600
22php_value       session.gc_divisor      500
23php_value       session.gc_probability  1
24
25# http://bugs.php.net/bug.php?id=30766
26php_value       mbstring.func_overload  0
27</IfModule>
28
29<IfModule mod_rewrite.c>
30RewriteEngine On
31RewriteRule ^favicon\.ico$ skins/larry/images/favicon.ico
32# security rules
33RewriteRule .git - [F]
34RewriteRule ^/?(README(.md)?|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ - [F]
35RewriteRule ^/?(SQL|bin) - [F]
36</IfModule>
37
38<IfModule mod_deflate.c>
39SetOutputFilter DEFLATE
40</IfModule>
41
42<IfModule mod_headers.c>
43# replace 'append' with 'merge' for Apache version 2.2.9 and later
44#Header append Cache-Control public env=!NO_CACHE
45</IfModule>
46
47<IfModule mod_expires.c>
48ExpiresActive On
49ExpiresDefault "access plus 1 month"
50</IfModule>
51
52FileETag MTime Size
53
54<IfModule mod_autoindex.c>
55Options -Indexes
56</ifModule>
Note: See TracBrowser for help on using the repository browser.