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
8 ModPagespeedFileCachePath "<%= @cache_path %>"
9 ModPagespeedLogDir "<%= @log_dir %>"
11 <% @memcache_servers.each do |server| -%>
12 ModPagespeedMemcachedServers <%= server %>
15 ModPagespeedRewriteLevel <%= @rewrite_level -%>
17 <% @disable_filters.each do |filter| -%>
18 ModPagespeedDisableFilters <%= filter %>
21 <% @enable_filters.each do |filter| -%>
22 ModPagespeedEnableFilters <%= filter %>
25 <% @forbid_filters.each do |filter| -%>
26 ModPagespeedForbidFilters <%= filter %>
29 ModPagespeedRewriteDeadlinePerFlushMs <%= @rewrite_deadline_per_flush_ms %>
31 <% if @additional_domains -%>
32 ModPagespeedDomain <%= @additional_domains -%>
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 %>
48 ModPagespeedFileCacheInodeLimit <%= @inode_limit %>
49 ModPagespeedImageMaxRewritesAtOnce <%= @image_max_rewrites_at_once %>
51 ModPagespeedNumRewriteThreads <%= @num_rewrite_threads %>
52 ModPagespeedNumExpensiveRewriteThreads <%= @num_expensive_rewrite_threads %>
54 ModPagespeedStatistics <%= @collect_statistics %>
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(" ") %>
68 Allow from 127.0.0.1 ::1 <%= Array(@allow_view_stats).join(" ") %>
70 SetHandler mod_pagespeed_statistics
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(" ") %>
79 Allow from 127.0.0.1 ::1 <%= Array(@allow_pagespeed_console).join(" ") %>
81 SetHandler pagespeed_console
84 ModPagespeedMessageBufferSize <%= @message_buffer_size %>
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(" ") %>
91 Allow from 127.0.0.1 ::1 <%= Array(@allow_pagespeed_message).join(" ") %>
93 SetHandler mod_pagespeed_message
96 <% @additional_configuration.each_pair do |key, value| -%>
97 <%= key %> <%= value %>