1 --- modpagespeed-1.8.31.5/install/common/pagespeed.conf.template~ 2014-12-16 23:05:23.000000000 +0200
2 +++ modpagespeed-1.8.31.5/install/common/pagespeed.conf.template 2014-12-16 23:24:39.840183325 +0200
4 # and change server state, such as statistics, caches, and
5 # messages. This might be appropriate in an experimental setup.
6 <Location /pagespeed_admin>
11 + <IfModule !mod_authz_core.c>
13 + Allow from localhost
14 + Allow from 127.0.0.1
17 + <IfModule mod_authz_core.c>
22 SetHandler pagespeed_admin
24 <Location /pagespeed_global_admin>
26 - Allow from localhost
27 - Allow from 127.0.0.1
29 + <IfModule !mod_authz_core.c>
31 + Allow from localhost
32 + Allow from 127.0.0.1
35 + <IfModule mod_authz_core.c>
40 SetHandler pagespeed_global_admin
43 --- modpagespeed-1.8.31.5/install/debug.conf.template~ 2014-12-16 23:05:23.000000000 +0200
44 +++ modpagespeed-1.8.31.5/install/debug.conf.template 2014-12-16 23:29:28.621809636 +0200
46 # Enable per-vhost statistics so that tests can be somewhat independent.
47 ModPagespeedUsePerVHostStatistics on
48 <Location /mod_pagespeed_global_statistics>
50 - Allow from localhost
51 - Allow from 127.0.0.1
53 + <IfModule !mod_authz_core.c>
55 + Allow from localhost
56 + Allow from 127.0.0.1
59 + <IfModule mod_authz_core.c>
64 SetHandler mod_pagespeed_global_statistics
68 # these are declared so we can test that the handlers still work so
69 # that people upgrading to a new release don't lose funcitonality.
70 <Location /mod_pagespeed_statistics>
72 # You may insert other "Allow from" lines to add hosts you want to
73 # allow to look at generated statistics. Another possibility is
74 # to comment out the "Order" and "Allow" options from the config
76 # statistics. This might be appropriate in an experimental setup or
77 # if the Apache server is protected by a reverse proxy that will
78 # filter URLs in some fashion.
79 - Allow from localhost
80 - Allow from 127.0.0.1
82 + <IfModule !mod_authz_core.c>
84 + Allow from localhost
85 + Allow from 127.0.0.1
88 + <IfModule mod_authz_core.c>
93 SetHandler mod_pagespeed_statistics
95 <Location /pagespeed_console>
97 - Allow from localhost
98 - Allow from 127.0.0.1
100 + <IfModule !mod_authz_core.c>
102 + Allow from localhost
103 + Allow from 127.0.0.1
106 + <IfModule mod_authz_core.c>
111 SetHandler pagespeed_console
113 <Location /mod_pagespeed_message>
115 - Allow from localhost
116 - Allow from 127.0.0.1
118 + <IfModule !mod_authz_core.c>
120 + Allow from localhost
121 + Allow from 127.0.0.1
124 + <IfModule mod_authz_core.c>
129 SetHandler mod_pagespeed_message
132 # The handler for "pagespeed_admin" is fixed in name, but you can put
133 # it on any URL path, and everything should work.
134 <Location /alt/admin/path>
136 - Allow from localhost
137 - Allow from 127.0.0.1
139 + <IfModule !mod_authz_core.c>
141 + Allow from localhost
142 + Allow from 127.0.0.1
145 + <IfModule mod_authz_core.c>
151 SetHandler pagespeed_admin
154 @@ -1078,13 +1124,33 @@
155 #COVERAGE ModPagespeedCriticalImagesBeaconEnabled false
157 #COVERAGE <Location /mod_pagespeed_statistics>
158 -#COVERAGE Order allow,deny
159 -#COVERAGE Allow from localhost
160 +#COVERAGE # Apache 2.x
161 +#COVERAGE <IfModule !mod_authz_core.c>
162 +#COVERAGE Order allow,deny
163 +#COVERAGE Allow from localhost
164 +#COVERAGE Allow from 127.0.0.1
165 +#COVERAGE </IfModule>
166 +#COVERAGE # Apache 2.4
167 +#COVERAGE <IfModule mod_authz_core.c>
168 +#COVERAGE Require all denied
169 +#COVERAGE Require local
170 +#COVERAGE </IfModule>
172 #COVERAGE SetHandler mod_pagespeed_statistics
173 #COVERAGE </Location>
174 #COVERAGE <Location /mod_pagespeed_message>
175 -#COVERAGE Allow from localhost
176 -#COVERAGE Allow from 127.0.0.1
177 +#COVERAGE # Apache 2.x
178 +#COVERAGE <IfModule !mod_authz_core.c>
179 +#COVERAGE Order allow,deny
180 +#COVERAGE Allow from localhost
181 +#COVERAGE Allow from 127.0.0.1
182 +#COVERAGE </IfModule>
183 +#COVERAGE # Apache 2.4
184 +#COVERAGE <IfModule mod_authz_core.c>
185 +#COVERAGE Require all denied
186 +#COVERAGE Require local
187 +#COVERAGE </IfModule>
189 #COVERAGE SetHandler mod_pagespeed_message
190 #COVERAGE </Location>
191 #COVERAGE </VirtualHost>