Mercurial > hg > rc1
comparison .htaccess @ 0:1e000243b222
vanilla 1.3.3 distro, I hope
author | Charlie Root |
---|---|
date | Thu, 04 Jan 2018 15:50:29 -0500 |
parents | |
children | a36beb7d3ea2 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1e000243b222 |
---|---|
1 # WARNING: For PHP 7 the module name in the line below need to be modified! | |
2 <IfModule mod_php5.c> | |
3 php_flag display_errors Off | |
4 php_flag log_errors On | |
5 # php_value error_log logs/errors | |
6 | |
7 php_value upload_max_filesize 5M | |
8 php_value post_max_size 6M | |
9 php_value memory_limit 64M | |
10 | |
11 php_flag zlib.output_compression Off | |
12 php_flag suhosin.session.encrypt Off | |
13 | |
14 #php_value session.cookie_path / | |
15 #php_value session.hash_function sha256 | |
16 php_flag session.auto_start Off | |
17 php_value session.gc_maxlifetime 21600 | |
18 php_value session.gc_divisor 500 | |
19 php_value session.gc_probability 1 | |
20 </IfModule> | |
21 | |
22 <IfModule mod_rewrite.c> | |
23 Options +SymLinksIfOwnerMatch | |
24 RewriteEngine On | |
25 RewriteRule ^favicon\.ico$ skins/larry/images/favicon.ico | |
26 | |
27 # security rules: | |
28 # - deny access to files not containing a dot or starting with a dot | |
29 # in all locations except installer directory | |
30 RewriteRule ^(?!installer|\.well-known\/|[a-zA-Z0-9]{16})(\.?[^\.]+)$ - [F] | |
31 # - deny access to some locations | |
32 RewriteRule ^/?(\.git|\.tx|SQL|bin|config|logs|temp|tests|program\/(include|lib|localization|steps)) - [F] | |
33 # - deny access to composer binaries | |
34 RewriteRule ^/vendor\/bin\/.* - [F] | |
35 # - deny access to some documentation files | |
36 RewriteRule /?(README\.md|composer\.json-dist|composer\.json|package\.xml|jsdeps.json|Dockerfile)$ - [F] | |
37 </IfModule> | |
38 | |
39 <IfModule mod_deflate.c> | |
40 SetOutputFilter DEFLATE | |
41 </IfModule> | |
42 | |
43 <IfModule mod_expires.c> | |
44 ExpiresActive On | |
45 ExpiresDefault "access plus 1 month" | |
46 </IfModule> | |
47 | |
48 FileETag MTime Size | |
49 | |
50 <IfModule mod_autoindex.c> | |
51 Options -Indexes | |
52 </ifModule> | |
53 | |
54 <IfModule mod_headers.c> | |
55 # Disable page indexing | |
56 Header set X-Robots-Tag "noindex, nofollow" | |
57 | |
58 # replace 'append' with 'merge' for Apache version 2.2.9 and later | |
59 #Header append Cache-Control public env=!NO_CACHE | |
60 | |
61 # Optional security header | |
62 # Only increased security if the browser support those features | |
63 # Be careful! Testing is required! They should be adusted to your intallation / user environment | |
64 | |
65 # HSTS - HTTP Strict Transport Security | |
66 #Header always set Strict-Transport-Security "max-age=31536000; preload" env=HTTPS | |
67 | |
68 # HPKP - HTTP Public Key Pinning | |
69 # Only template - fill with your values | |
70 #Header always set Public-Key-Pins "max-age=3600; report-uri=\"\"; pin-sha256=\"\"; pin-sha256=\"\"" env=HTTPS | |
71 | |
72 # X-Xss-Protection | |
73 # This header is used to configure the built in reflective XSS protection found in Internet Explorer, Chrome and Safari (Webkit). | |
74 #Header set X-XSS-Protection "1; mode=block" | |
75 | |
76 # X-Frame-Options | |
77 # The X-Frame-Options header (RFC), or XFO header, protects your visitors against clickjacking attacks | |
78 # Already set by php code! Do not activate both options | |
79 #Header set X-Frame-Options SAMEORIGIN | |
80 | |
81 # X-Content-Type-Options | |
82 # It prevents Google Chrome and Internet Explorer from trying to mime-sniff the content-type of a response away from the one being declared by the server. | |
83 #Header set X-Content-Type-Options: "nosniff" | |
84 | |
85 # CSP - Content Security Policy | |
86 # for better privacy/security ask browsers to not set the Referer | |
87 # more flags for script, stylesheets and images available, read RFC for more information | |
88 #Header set Content-Security-Policy "referrer no-referrer" | |
89 </IfModule> |