-
-
Notifications
You must be signed in to change notification settings - Fork 639
/
Copy pathhtaccess.conf
105 lines (77 loc) · 3.11 KB
/
htaccess.conf
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# htaccess.conf
#
# This file defines which .htaccess module partials
# are enabled or disabled.
#
# Each entry consists of a "keyword" and "filename",
# separated by at least one space character.
#
# - keyword: one of "title", "enable", "disable", or "omit".
# - filename: may be quoted if the filename has spaces.
#
# Example:
#
# title "cross-origin"
# enable "path/to/a.conf"
# disable "path/to/b.conf"
# omit "path/to/not-needed.conf"
#
# Special keyword "no-partials-comments" can be included to
# prevent the comments in the input partials from being copied
# into the output .htaccess file.
#
# This keyword:
# - does not override "title" and "disable" keywords. Comments
# arising from these keywords will appear in the output.
# - can build a streamlined "for production" .htaccess file.
# ----------------------------------------------------------------------
# | Comment control |
# ----------------------------------------------------------------------
# no-partials-comments
# ----------------------------------------------------------------------
# | Partials definitions |
# ----------------------------------------------------------------------
# Module "cross-origin"
title "cross-origin"
disable "h5bp/cross-origin/requests.conf"
enable "h5bp/cross-origin/images.conf"
enable "h5bp/cross-origin/web_fonts.conf"
disable "h5bp/cross-origin/resource_timing.conf"
# Module "errors"
title "errors"
disable "h5bp/errors/custom_errors.conf"
enable "h5bp/errors/error_prevention.conf"
# Module "media types and character encodings"
title "media types and character encodings"
enable "h5bp/media_types/media_types.conf"
enable "h5bp/media_types/character_encodings.conf"
# Module "rewrites"
title "rewrites"
enable "h5bp/rewrites/rewrite_engine.conf"
disable "h5bp/rewrites/rewrite_http_to_https.conf"
enable "h5bp/rewrites/rewrite_nowww.conf"
disable "h5bp/rewrites/rewrite_www.conf"
# Module "security"
title "security"
disable "h5bp/security/x-frame-options.conf"
disable "h5bp/security/content-security-policy.conf"
enable "h5bp/security/file_access.conf"
disable "h5bp/security/strict-transport-security.conf"
enable "h5bp/security/x-content-type-options.conf"
disable "h5bp/security/referrer-policy.conf"
disable "h5bp/security/cross-origin-policy.conf"
disable "h5bp/security/permissions-policy.conf"
disable "h5bp/security/trace_method.conf"
enable "h5bp/security/x-powered-by.conf"
enable "h5bp/security/server_software_information.conf"
# Module "web performance"
title "web performance"
enable "h5bp/web_performance/compression.conf"
disable "h5bp/web_performance/pre-compressed_content_brotli.conf"
disable "h5bp/web_performance/pre-compressed_content_gzip.conf"
enable "h5bp/web_performance/no_etags.conf"
enable "h5bp/web_performance/cache_expiration.conf"
disable "h5bp/web_performance/cache-control.conf"
disable "h5bp/web_performance/content_transformation.conf"
disable "h5bp/web_performance/file_concatenation.conf"
disable "h5bp/web_performance/filename-based_cache_busting.conf"