|
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 |
|---|
| 2 | AddType text/x-component .htc |
|---|
| 3 | |
|---|
| 4 | <IfModule mod_php5.c> |
|---|
| 5 | php_flag display_errors Off |
|---|
| 6 | php_flag log_errors On |
|---|
| 7 | # php_value error_log logs/errors |
|---|
| 8 | |
|---|
| 9 | php_value upload_max_filesize 5M |
|---|
| 10 | php_value post_max_size 6M |
|---|
| 11 | php_value memory_limit 64M |
|---|
| 12 | |
|---|
| 13 | php_flag zlib.output_compression Off |
|---|
| 14 | php_flag magic_quotes_gpc Off |
|---|
| 15 | php_flag magic_quotes_runtime Off |
|---|
| 16 | php_flag zend.ze1_compatibility_mode Off |
|---|
| 17 | php_flag suhosin.session.encrypt Off |
|---|
| 18 | |
|---|
| 19 | #php_value session.cookie_path / |
|---|
| 20 | php_flag session.auto_start Off |
|---|
| 21 | php_value session.gc_maxlifetime 21600 |
|---|
| 22 | php_value session.gc_divisor 500 |
|---|
| 23 | php_value session.gc_probability 1 |
|---|
| 24 | |
|---|
| 25 | # http://bugs.php.net/bug.php?id=30766 |
|---|
| 26 | php_value mbstring.func_overload 0 |
|---|
| 27 | </IfModule> |
|---|
| 28 | |
|---|
| 29 | <IfModule mod_rewrite.c> |
|---|
| 30 | RewriteEngine On |
|---|
| 31 | RewriteRule ^favicon\.ico$ skins/larry/images/favicon.ico |
|---|
| 32 | # security rules |
|---|
| 33 | RewriteRule .git - [F] |
|---|
| 34 | RewriteRule ^/?(README(.md)?|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ - [F] |
|---|
| 35 | RewriteRule ^/?(SQL|bin) - [F] |
|---|
| 36 | </IfModule> |
|---|
| 37 | |
|---|
| 38 | <IfModule mod_deflate.c> |
|---|
| 39 | SetOutputFilter 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> |
|---|
| 48 | ExpiresActive On |
|---|
| 49 | ExpiresDefault "access plus 1 month" |
|---|
| 50 | </IfModule> |
|---|
| 51 | |
|---|
| 52 | FileETag MTime Size |
|---|
| 53 | |
|---|
| 54 | <IfModule mod_autoindex.c> |
|---|
| 55 | Options -Indexes |
|---|
| 56 | </ifModule> |
|---|
Note: See
TracBrowser
for help on using the repository browser.