]> git.pld-linux.org Git - packages/apache-mod_pagespeed.git/blame - apache24-config.patch
- added system-protobuf patch to use system protobuf; but build still fails due to...
[packages/apache-mod_pagespeed.git] / apache24-config.patch
CommitLineData
a16986b1
ER
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
3@@ -326,15 +326,33 @@
4 # and change server state, such as statistics, caches, and
5 # messages. This might be appropriate in an experimental setup.
6 <Location /pagespeed_admin>
7- Order allow,deny
8- Allow from localhost
9- Allow from 127.0.0.1
10+ # Apache 2.x
11+ <IfModule !mod_authz_core.c>
12+ Order allow,deny
13+ Allow from localhost
14+ Allow from 127.0.0.1
15+ </IfModule>
16+ # Apache 2.4
17+ <IfModule mod_authz_core.c>
18+ Require all denied
19+ Require local
20+ </IfModule>
21+
22 SetHandler pagespeed_admin
23 </Location>
24 <Location /pagespeed_global_admin>
25- Order allow,deny
26- Allow from localhost
27- Allow from 127.0.0.1
28+ # Apache 2.x
29+ <IfModule !mod_authz_core.c>
30+ Order allow,deny
31+ Allow from localhost
32+ Allow from 127.0.0.1
33+ </IfModule>
34+ # Apache 2.4
35+ <IfModule mod_authz_core.c>
36+ Require all denied
37+ Require local
38+ </IfModule>
39+
40 SetHandler pagespeed_global_admin
41 </Location>
42
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
45@@ -730,9 +730,18 @@
46 # Enable per-vhost statistics so that tests can be somewhat independent.
47 ModPagespeedUsePerVHostStatistics on
48 <Location /mod_pagespeed_global_statistics>
49- Order allow,deny
50- Allow from localhost
51- Allow from 127.0.0.1
52+ # Apache 2.x
53+ <IfModule !mod_authz_core.c>
54+ Order allow,deny
55+ Allow from localhost
56+ Allow from 127.0.0.1
57+ </IfModule>
58+ # Apache 2.4
59+ <IfModule mod_authz_core.c>
60+ Require all denied
61+ Require local
62+ </IfModule>
63+
64 SetHandler mod_pagespeed_global_statistics
65 </Location>
66
67@@ -741,7 +750,6 @@
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>
71- Order allow,deny
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
75@@ -749,29 +757,67 @@
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
81+ # Apache 2.x
82+ <IfModule !mod_authz_core.c>
83+ Order allow,deny
84+ Allow from localhost
85+ Allow from 127.0.0.1
86+ </IfModule>
87+ # Apache 2.4
88+ <IfModule mod_authz_core.c>
89+ Require all denied
90+ Require local
91+ </IfModule>
92+
93 SetHandler mod_pagespeed_statistics
94 </Location>
95 <Location /pagespeed_console>
96- Order allow,deny
97- Allow from localhost
98- Allow from 127.0.0.1
99+ # Apache 2.x
100+ <IfModule !mod_authz_core.c>
101+ Order allow,deny
102+ Allow from localhost
103+ Allow from 127.0.0.1
104+ </IfModule>
105+ # Apache 2.4
106+ <IfModule mod_authz_core.c>
107+ Require all denied
108+ Require local
109+ </IfModule>
110+
111 SetHandler pagespeed_console
112 </Location>
113 <Location /mod_pagespeed_message>
114- Order allow,deny
115- Allow from localhost
116- Allow from 127.0.0.1
117+ # Apache 2.x
118+ <IfModule !mod_authz_core.c>
119+ Order allow,deny
120+ Allow from localhost
121+ Allow from 127.0.0.1
122+ </IfModule>
123+ # Apache 2.4
124+ <IfModule mod_authz_core.c>
125+ Require all denied
126+ Require local
127+ </IfModule>
128+
129 SetHandler mod_pagespeed_message
130 </Location>
131
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>
135- Order allow,deny
136- Allow from localhost
137- Allow from 127.0.0.1
138+ # Apache 2.x
139+ <IfModule !mod_authz_core.c>
140+ Order allow,deny
141+ Allow from localhost
142+ Allow from 127.0.0.1
143+ </IfModule>
144+ # Apache 2.4
145+ <IfModule mod_authz_core.c>
146+ Require all denied
147+ Require local
148+ </IfModule>
149+
150+
151 SetHandler pagespeed_admin
152 </Location>
153
154@@ -1078,13 +1124,33 @@
155 #COVERAGE ModPagespeedCriticalImagesBeaconEnabled false
156 #COVERAGE
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>
171+#COVERAGE
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>
188+#COVERAGE
189 #COVERAGE SetHandler mod_pagespeed_message
190 #COVERAGE </Location>
191 #COVERAGE </VirtualHost>
This page took 0.083865 seconds and 4 git commands to generate.