1. <IfModule !mod_version.c>
  2. LoadModule version_module modules/mod_version.so
  3. </IfModule>
  4. <IfVersion < 2.4>
  5. LoadModule pagespeed_module modules/mod_pagespeed.so
  6. </IfVersion>
  7. <IfVersion >= 2.4.2>
  8. LoadModule pagespeed_module modules/mod_pagespeed_ap24.so
  9. </IfVersion>
  10. <IfModule pagespeed_module>
  11. # Turn on mod_pagespeed. To completely disable mod_pagespeed, you
  12. # can set this to "off".
  13. ModPagespeed on
  14. # Direct Apache to send all HTML output to the mod_pagespeed
  15. # output handler.
  16. AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
  17. # The ModPagespeedFileCachePath and
  18. # ModPagespeedGeneratedFilePrefix directories must exist and be
  19. # writable by the apache user (as specified by the User
  20. # directive).
  21. ModPagespeedFileCachePath "/var/mod_pagespeed/cache/"
  22. # Override the mod_pagespeed 'rewrite level'. The default level
  23. # "CoreFilters" uses a set of rewrite filters that are generally
  24. # safe for most web pages. Most sites should not need to change
  25. # this value and can instead fine-tune the configuration using the
  26. # ModPagespeedDisableFilters and ModPagespeedEnableFilters
  27. # directives, below. Valid values for ModPagespeedRewriteLevel are
  28. # PassThrough, CoreFilters, TestingCoreFilters and AllFilters.
  29. #
  30. # ModPagespeedRewriteLevel PassThrough
  31. # Explicitly disables specific filters. This is useful in
  32. # conjunction with ModPagespeedRewriteLevel. For instance, if one
  33. # of the filters in the CoreFilters needs to be disabled for a
  34. # site, that filter can be added to
  35. # ModPagespeedDisableFilters. This directive contains a
  36. # comma-separated list of filter names, and can be repeated.
  37. #
  38. # ModPagespeedDisableFilters rewrite_images
  39. # Explicitly enables specific filters. This is useful in
  40. # conjunction with ModPagespeedRewriteLevel. For instance, filters
  41. # not included in the CoreFilters may be enabled using this
  42. # directive. This directive contains a comma-separated list of
  43. # filter names, and can be repeated.
  44. #
  45. # ModPagespeedEnableFilters rewrite_javascript,rewrite_css
  46. # ModPagespeedEnableFilters collapse_whitespace,elide_attributes
  47. # ModPagespeedDomain
  48. # authorizes rewriting of JS, CSS, and Image files found in this
  49. # domain. By default only resources with the same origin as the
  50. # HTML file are rewritten. For example:
  51. #
  52. # ModPagespeedDomain cdn.myhost.com
  53. #
  54. # This will allow resources found on http://cdn.myhost.com to be
  55. # rewritten in addition to those in the same domain as the HTML.
  56. #
  57. # Wildcards (* and ?) are allowed in the domain specification. Be
  58. # careful when using them as if you rewrite domains that do not
  59. # send you traffic, then the site receiving the traffic will not
  60. # know how to serve the rewritten content.
  61. # Other defaults (cache sizes and thresholds):
  62. #
  63. # ModPagespeedFileCacheSizeKb 102400
  64. # ModPagespeedFileCacheCleanIntervalMs 3600000
  65. # ModPagespeedLRUCacheKbPerProcess 1024
  66. # ModPagespeedLRUCacheByteLimit 16384
  67. # ModPagespeedCssInlineMaxBytes 2048
  68. # ModPagespeedImgInlineMaxBytes 2048
  69. # ModPagespeedJsInlineMaxBytes 2048
  70. # ModPagespeedCssOutlineMinBytes 3000
  71. # ModPagespeedJsOutlineMinBytes 3000
  72. # Bound the number of images that can be rewritten at any one time; this
  73. # avoids overloading the CPU. Set this to 0 to remove the bound.
  74. #
  75. # ModPagespeedImgMaxRewritesAtOnce 8
  76. # When Apache is set up as a browser proxy, mod_pagespeed can record
  77. # web-sites as they are requested, so that an image of the web is built up
  78. # in the directory of the proxy administrator's choosing. When ReadOnly is
  79. # on, only files already present in the SlurpDirectory are served by the
  80. # proxy.
  81. #
  82. # ModPagespeedSlurpDirectory ...
  83. # ModPagespeedSlurpReadOnly on
  84. # The maximum URL size is generally limited to about 2k characters
  85. # due to IE: See http://support.microsoft.com/kb/208427/EN-US.
  86. # Apache servers by default impose a further limitation of about
  87. # 250 characters per URL segment (text between slashes).
  88. # mod_pagespeed circumvents this limitation, but if you employ
  89. # proxy servers in your path you may need to re-impose it by
  90. # overriding the setting here. The default setting is 1024
  91. # characters.
  92. #
  93. # ModPagespeedMaxSegmentLength 250
  94. # Uncomment this if you want to prevent mod_pagespeed from combining files
  95. # (e.g. CSS files) across paths
  96. #
  97. # ModPagespeedCombineAcrossPaths off
  98. # Whether or not to log timing information for rewriting filters.
  99. # Off by default to keep logs uncluttered.
  100. #
  101. # ModPagespeedLogRewriteTiming on
  102. # Enables server-side instrumentation and statistics. If this rewriter is
  103. # enabled, then each rewritten HTML page will have instrumentation javacript
  104. # added that sends latency beacons to /mod_pagespeed_beacon. These
  105. # statistics can be accessed at /mod_pagespeed_statistics. You must also
  106. # enable the mod_pagespeed_statistics and mod_pagespeed_beacon handlers
  107. # below.
  108. #
  109. # ModPagespeedEnableFilters add_instrumentation
  110. # This handles the client-side instrumentation callbacks which are injected
  111. # by the add_instrumentation filter.
  112. # You can use a different location by adding the ModPagespeedBeaconUrl
  113. # directive; see the documentation on add_instrumentation.
  114. <Location /mod_pagespeed_beacon>
  115. SetHandler mod_pagespeed_beacon
  116. </Location>
  117. # Uncomment the following line if you want to disable statistics entirely.
  118. #
  119. # ModPagespeedStatistics off
  120. # This page lets you view statistics about the mod_pagespeed module.
  121. <Location /mod_pagespeed_statistics>
  122. Order allow,deny
  123. # You may insert other "Allow from" lines to add hosts you want to
  124. # allow to look at generated statistics. Another possibility is
  125. # to comment out the "Order" and "Allow" options from the config
  126. # file, to allow any client that can reach your server to examine
  127. # statistics. This might be appropriate in an experimental setup or
  128. # if the Apache server is protected by a reverse proxy that will
  129. # filter URLs in some fashion.
  130. Allow from localhost
  131. SetHandler mod_pagespeed_statistics
  132. </Location>
  133. ModPagespeedMapOriginDomain http://bestlistofporn.com https://bestlistofporn.com
  134. #ModPagespeedMapOriginDomain http://localhost https://bestlistofporn.com
  135. </IfModule>