28
|
1 |
ModPagespeed on
|
|
2 |
|
|
3 |
ModPagespeedInheritVHostConfig <%= @inherit_vhost_config %>
|
|
4 |
AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
|
|
5 |
<% if @filter_xhtml -%>
|
|
6 |
AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER application/xhtml+xml
|
|
7 |
<% end -%>
|
|
8 |
ModPagespeedFileCachePath "<%= @cache_path %>"
|
|
9 |
ModPagespeedLogDir "<%= @log_dir %>"
|
|
10 |
|
|
11 |
<% @memcache_servers.each do |server| -%>
|
|
12 |
ModPagespeedMemcachedServers <%= server %>
|
|
13 |
<% end -%>
|
|
14 |
|
|
15 |
ModPagespeedRewriteLevel <%= @rewrite_level -%>
|
|
16 |
|
|
17 |
<% @disable_filters.each do |filter| -%>
|
|
18 |
ModPagespeedDisableFilters <%= filter %>
|
|
19 |
<% end -%>
|
|
20 |
|
|
21 |
<% @enable_filters.each do |filter| -%>
|
|
22 |
ModPagespeedEnableFilters <%= filter %>
|
|
23 |
<% end -%>
|
|
24 |
|
|
25 |
<% @forbid_filters.each do |filter| -%>
|
|
26 |
ModPagespeedForbidFilters <%= filter %>
|
|
27 |
<% end -%>
|
|
28 |
|
|
29 |
ModPagespeedRewriteDeadlinePerFlushMs <%= @rewrite_deadline_per_flush_ms %>
|
|
30 |
|
|
31 |
<% if @additional_domains -%>
|
|
32 |
ModPagespeedDomain <%= @additional_domains -%>
|
|
33 |
<% end -%>
|
|
34 |
|
|
35 |
ModPagespeedFileCacheSizeKb <%= @file_cache_size_kb %>
|
|
36 |
ModPagespeedFileCacheCleanIntervalMs <%= @file_cache_clean_interval_ms %>
|
|
37 |
ModPagespeedLRUCacheKbPerProcess <%= @lru_cache_per_process %>
|
|
38 |
ModPagespeedLRUCacheByteLimit <%= @lru_cache_byte_limit %>
|
|
39 |
ModPagespeedCssFlattenMaxBytes <%= @css_flatten_max_bytes %>
|
|
40 |
ModPagespeedCssInlineMaxBytes <%= @css_inline_max_bytes %>
|
|
41 |
ModPagespeedCssImageInlineMaxBytes <%= @css_image_inline_max_bytes %>
|
|
42 |
ModPagespeedImageInlineMaxBytes <%= @image_inline_max_bytes %>
|
|
43 |
ModPagespeedJsInlineMaxBytes <%= @js_inline_max_bytes %>
|
|
44 |
ModPagespeedCssOutlineMinBytes <%= @css_outline_min_bytes %>
|
|
45 |
ModPagespeedJsOutlineMinBytes <%= @js_outline_min_bytes %>
|
|
46 |
|
|
47 |
|
|
48 |
ModPagespeedFileCacheInodeLimit <%= @inode_limit %>
|
|
49 |
ModPagespeedImageMaxRewritesAtOnce <%= @image_max_rewrites_at_once %>
|
|
50 |
|
|
51 |
ModPagespeedNumRewriteThreads <%= @num_rewrite_threads %>
|
|
52 |
ModPagespeedNumExpensiveRewriteThreads <%= @num_expensive_rewrite_threads %>
|
|
53 |
|
|
54 |
ModPagespeedStatistics <%= @collect_statistics %>
|
|
55 |
|
|
56 |
<Location /mod_pagespeed_statistics>
|
|
57 |
# You may insert other "Allow from" lines to add hosts you want to
|
|
58 |
# allow to look at generated statistics. Another possibility is
|
|
59 |
# to comment out the "Order" and "Allow" options from the config
|
|
60 |
# file, to allow any client that can reach your server to examine
|
|
61 |
# statistics. This might be appropriate in an experimental setup or
|
|
62 |
# if the Apache server is protected by a reverse proxy that will
|
|
63 |
# filter URLs in some fashion.
|
|
64 |
<%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
|
|
65 |
Require ip 127.0.0.1 ::1 <%= Array(@allow_view_stats).join(" ") %>
|
|
66 |
<%- else -%>
|
|
67 |
Order allow,deny
|
|
68 |
Allow from 127.0.0.1 ::1 <%= Array(@allow_view_stats).join(" ") %>
|
|
69 |
<%- end -%>
|
|
70 |
SetHandler mod_pagespeed_statistics
|
|
71 |
</Location>
|
|
72 |
|
|
73 |
ModPagespeedStatisticsLogging <%= @statistics_logging %>
|
|
74 |
<Location /pagespeed_console>
|
|
75 |
<%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
|
|
76 |
Require ip 127.0.0.1 ::1 <%= Array(@allow_pagespeed_console).join(" ") %>
|
|
77 |
<%- else -%>
|
|
78 |
Order allow,deny
|
|
79 |
Allow from 127.0.0.1 ::1 <%= Array(@allow_pagespeed_console).join(" ") %>
|
|
80 |
<%- end -%>
|
|
81 |
SetHandler pagespeed_console
|
|
82 |
</Location>
|
|
83 |
|
|
84 |
ModPagespeedMessageBufferSize <%= @message_buffer_size %>
|
|
85 |
|
|
86 |
<Location /mod_pagespeed_message>
|
|
87 |
<%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
|
|
88 |
Require ip 127.0.0.1 ::1 <%= Array(@allow_pagespeed_message).join(" ") %>
|
|
89 |
<%- else -%>
|
|
90 |
Order allow,deny
|
|
91 |
Allow from 127.0.0.1 ::1 <%= Array(@allow_pagespeed_message).join(" ") %>
|
|
92 |
<%- end -%>
|
|
93 |
SetHandler mod_pagespeed_message
|
|
94 |
</Location>
|
|
95 |
|
|
96 |
<% @additional_configuration.each_pair do |key, value| -%>
|
|
97 |
<%= key %> <%= value %>
|
|
98 |
<% end -%>
|