-
Notifications
You must be signed in to change notification settings - Fork 6
/
.htaccess
53 lines (44 loc) · 1.51 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# ----------------------------- ERROR HANDLING ------------------------------ #
php_flag html_errors on
php_flag log_errors on
php_flag ignore_repeated_errors on
php_flag ignore_repeated_source on
php_flag report_memleaks on
php_flag track_errors on
php_value docref_root 0
php_value docref_ext 0
php_value error_reporting -1
php_value log_errors_max_len 0
# --------------------------- LANGUAGE & CHARSET ---------------------------- #
AddDefaultCharset UTF-8
DefaultLanguage fr-CA
# --------------------------- SECURITY SETTINGS ----------------------------- #
# Maximum allowed upload size
php_value post_max_size 20M
php_value upload_max_filesize 20M
# Limit HTTP request body according to the maximum allowed upload
# size (20M in bytes).
LimitRequestBody 20480000
# Time limit (in seconds) for script execution
php_value max_execution_time 15
# Time limit (in seconds) to parse input data (GET, POST, ...)
php_value max_input_time 180
# Disable directory browsing and server exposition
Options All -Indexes
ServerSignature Off
php_flag expose_php Off
# Transmit session id only with cookie and prevent theft from client
# scripts (XSS).
php_flag session.use_cookies On
php_flag session.use_only_cookies On
php_flag session.cookie_httponly On
php_flag session.use_trans_sid Off
# Prevent RFI attacks (remote file inclusion)
php_flag allow_url_fopen Off
php_flag allow_url_include Off
# Protect error logs, htaccess file and configurations
<Files .htaccess,config.ini>
order allow,deny
deny from all
satisfy all
</Files>