1 |
commit: f8722fceefea5312c7d1a6204f3f6409b4e5e5f6 |
2 |
Author: Benedikt Boehm <hollow <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 20 08:32:08 2009 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 20 08:32:08 2009 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/apache.git;a=commit;h=f8722fce |
7 |
|
8 |
cleanup IfModule directives |
9 |
|
10 |
--- |
11 |
2.2/conf/modules.d/00_apache_manual.conf | 6 ----- |
12 |
2.2/conf/modules.d/00_error_documents.conf | 12 ++------- |
13 |
2.2/conf/modules.d/00_languages.conf | 4 --- |
14 |
2.2/conf/modules.d/00_mod_autoindex.conf | 4 +-- |
15 |
2.2/conf/modules.d/00_mod_info.conf | 2 -- |
16 |
2.2/conf/modules.d/00_mod_status.conf | 2 -- |
17 |
2.2/conf/modules.d/00_mod_userdir.conf | 6 ----- |
18 |
2.2/conf/modules.d/40_mod_ssl.conf | 2 -- |
19 |
2.2/conf/modules.d/45_mod_dav.conf | 41 ++---------------------------- |
20 |
2.2/conf/modules.d/46_mod_ldap.conf | 9 ------- |
21 |
10 files changed, 6 insertions(+), 82 deletions(-) |
22 |
|
23 |
diff --git a/2.2/conf/modules.d/00_apache_manual.conf b/2.2/conf/modules.d/00_apache_manual.conf |
24 |
index a424ea7..8825f84 100644 |
25 |
--- a/2.2/conf/modules.d/00_apache_manual.conf |
26 |
+++ b/2.2/conf/modules.d/00_apache_manual.conf |
27 |
@@ -3,9 +3,6 @@ |
28 |
# The documentation is always available at |
29 |
# http://httpd.apache.org/docs/2.2/ |
30 |
<IfDefine MANUAL> |
31 |
-<IfModule alias_module> |
32 |
-<IfModule setenvif_module> |
33 |
-<IfModule negotiation_module> |
34 |
AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|pt-br))?(/.*)?$ "/usr/share/doc/apache-VERSION/manual$1" |
35 |
|
36 |
<Directory "/usr/share/doc/apache-VERSION/manual"> |
37 |
@@ -24,9 +21,6 @@ AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|pt-br))?(/.*)?$ "/usr/share/doc/apac |
38 |
LanguagePriority en de es fr ja ko pt-br |
39 |
ForceLanguagePriority Prefer Fallback |
40 |
</Directory> |
41 |
-</IfModule> |
42 |
-</IfModule> |
43 |
-</IfModule> |
44 |
</IfDefine> |
45 |
|
46 |
# vim: ts=4 filetype=apache |
47 |
|
48 |
diff --git a/2.2/conf/modules.d/00_error_documents.conf b/2.2/conf/modules.d/00_error_documents.conf |
49 |
index 9090026..815668f 100644 |
50 |
--- a/2.2/conf/modules.d/00_error_documents.conf |
51 |
+++ b/2.2/conf/modules.d/00_error_documents.conf |
52 |
@@ -23,13 +23,9 @@ |
53 |
# of the setting of ServerSignature. |
54 |
|
55 |
<IfDefine ERRORDOCS> |
56 |
-<IfModule alias_module> |
57 |
-<IfModule mime_module> |
58 |
-<IfModule negotiation_module> |
59 |
+Alias /error/ "/usr/share/apache2/error/" |
60 |
|
61 |
-Alias /error/ "/var/www/localhost/error/" |
62 |
- |
63 |
-<Directory "/var/www/localhost/error"> |
64 |
+<Directory "/usr/share/apache2/error"> |
65 |
AllowOverride None |
66 |
Options IncludesNoExec |
67 |
AddOutputFilter Includes html |
68 |
@@ -57,10 +53,6 @@ ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var |
69 |
ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var |
70 |
ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var |
71 |
ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var |
72 |
- |
73 |
-</IfModule> |
74 |
-</IfModule> |
75 |
-</IfModule> |
76 |
</IfDefine> |
77 |
|
78 |
# vim: ts=4 filetype=apache |
79 |
|
80 |
diff --git a/2.2/conf/modules.d/00_languages.conf b/2.2/conf/modules.d/00_languages.conf |
81 |
index 287f654..c429bf9 100644 |
82 |
--- a/2.2/conf/modules.d/00_languages.conf |
83 |
+++ b/2.2/conf/modules.d/00_languages.conf |
84 |
@@ -1,7 +1,5 @@ |
85 |
# Settings for hosting different languages. |
86 |
<IfDefine LANGUAGE> |
87 |
-<IfModule mime_module> |
88 |
-<IfModule negotiation_module> |
89 |
# DefaultLanguage and AddLanguage allows you to specify the language of |
90 |
# a document. You can then use content negotiation to give a browser a |
91 |
# file in a language the user can understand. |
92 |
@@ -130,8 +128,6 @@ AddCharset gb2312 .gb2312 .gb |
93 |
AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2 |
94 |
AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4 |
95 |
AddCharset shift_jis .shift_jis .sjis |
96 |
-</IfModule> |
97 |
-</IfModule> |
98 |
</IfDefine> |
99 |
|
100 |
# vim: ts=4 filetype=apache |
101 |
|
102 |
diff --git a/2.2/conf/modules.d/00_mod_autoindex.conf b/2.2/conf/modules.d/00_mod_autoindex.conf |
103 |
index 2512357..ca2a168 100644 |
104 |
--- a/2.2/conf/modules.d/00_mod_autoindex.conf |
105 |
+++ b/2.2/conf/modules.d/00_mod_autoindex.conf |
106 |
@@ -2,9 +2,9 @@ |
107 |
<IfModule alias_module> |
108 |
# We include the /icons/ alias for FancyIndexed directory listings. If |
109 |
# you do not use FancyIndexing, you may comment this out. |
110 |
-Alias /icons/ "/var/www/localhost/icons/" |
111 |
+Alias /icons/ "/usr/share/apache2/icons/" |
112 |
|
113 |
-<Directory "/var/www/localhost/icons"> |
114 |
+<Directory "/usr/share/apache2/icons"> |
115 |
Options Indexes MultiViews |
116 |
AllowOverride None |
117 |
Order allow,deny |
118 |
|
119 |
diff --git a/2.2/conf/modules.d/00_mod_info.conf b/2.2/conf/modules.d/00_mod_info.conf |
120 |
index 53fd7ae..809c223 100644 |
121 |
--- a/2.2/conf/modules.d/00_mod_info.conf |
122 |
+++ b/2.2/conf/modules.d/00_mod_info.conf |
123 |
@@ -1,5 +1,4 @@ |
124 |
<IfDefine INFO> |
125 |
-<IfModule info_module> |
126 |
# Allow remote server configuration reports, with the URL of |
127 |
# http://servername/server-info |
128 |
<Location /server-info> |
129 |
@@ -8,7 +7,6 @@ |
130 |
Deny from all |
131 |
Allow from 127.0.0.1 |
132 |
</Location> |
133 |
-</IfModule> |
134 |
</IfDefine> |
135 |
|
136 |
# vim: ts=4 filetype=apache |
137 |
|
138 |
diff --git a/2.2/conf/modules.d/00_mod_status.conf b/2.2/conf/modules.d/00_mod_status.conf |
139 |
index fa90676..edd46a4 100644 |
140 |
--- a/2.2/conf/modules.d/00_mod_status.conf |
141 |
+++ b/2.2/conf/modules.d/00_mod_status.conf |
142 |
@@ -1,5 +1,4 @@ |
143 |
<IfDefine STATUS> |
144 |
-<IfModule status_module> |
145 |
# Allow server status reports generated by mod_status, |
146 |
# with the URL of http://servername/server-status |
147 |
<Location /server-status> |
148 |
@@ -13,7 +12,6 @@ |
149 |
# information (ExtendedStatus On) or just basic information (ExtendedStatus |
150 |
# Off) when the "server-status" handler is called. |
151 |
ExtendedStatus On |
152 |
-</IfModule> |
153 |
</IfDefine> |
154 |
|
155 |
# vim: ts=4 filetype=apache |
156 |
|
157 |
diff --git a/2.2/conf/modules.d/00_mod_userdir.conf b/2.2/conf/modules.d/00_mod_userdir.conf |
158 |
index 3fb6911..da7d0fb 100644 |
159 |
--- a/2.2/conf/modules.d/00_mod_userdir.conf |
160 |
+++ b/2.2/conf/modules.d/00_mod_userdir.conf |
161 |
@@ -1,8 +1,5 @@ |
162 |
# Settings for user home directories |
163 |
- |
164 |
<IfDefine USERDIR> |
165 |
-<IfModule userdir_module> |
166 |
- |
167 |
# UserDir: The name of the directory that is appended onto a user's home |
168 |
# directory if a ~user request is received. Note that you must also set |
169 |
# the default access control for these directories, as in the example below. |
170 |
@@ -26,15 +23,12 @@ UserDir public_html |
171 |
# Suexec isn't really required to run cgi-scripts, but it's a really good |
172 |
# idea if you have multiple users serving websites... |
173 |
<IfDefine SUEXEC> |
174 |
-<IfModule suexec_module> |
175 |
<Directory /home/*/public_html/cgi-bin> |
176 |
Options ExecCGI |
177 |
SetHandler cgi-script |
178 |
</Directory> |
179 |
-</IfModule> |
180 |
</IfDefine> |
181 |
|
182 |
-</IfModule> |
183 |
</IfDefine> |
184 |
|
185 |
# vim: ts=4 filetype=apache |
186 |
|
187 |
diff --git a/2.2/conf/modules.d/40_mod_ssl.conf b/2.2/conf/modules.d/40_mod_ssl.conf |
188 |
index 331783a..3d0a043 100644 |
189 |
--- a/2.2/conf/modules.d/40_mod_ssl.conf |
190 |
+++ b/2.2/conf/modules.d/40_mod_ssl.conf |
191 |
@@ -7,7 +7,6 @@ SSLRandomSeed connect builtin |
192 |
</IfModule> |
193 |
|
194 |
<IfDefine SSL> |
195 |
-<IfModule ssl_module> |
196 |
# This is the Apache server configuration file providing SSL support. |
197 |
# It contains the configuration directives to instruct the server how to |
198 |
# serve pages over an https connection. For detailing information about these |
199 |
@@ -59,7 +58,6 @@ SSLSessionCacheTimeout 300 |
200 |
# Configure the path to the mutual exclusion semaphore the SSL engine uses |
201 |
# internally for inter-process synchronization. |
202 |
SSLMutex file:/var/run/ssl_mutex |
203 |
-</IfModule> |
204 |
</IfDefine> |
205 |
|
206 |
# vim: ts=4 filetype=apache |
207 |
|
208 |
diff --git a/2.2/conf/modules.d/45_mod_dav.conf b/2.2/conf/modules.d/45_mod_dav.conf |
209 |
index be3654b..36f6b9c 100644 |
210 |
--- a/2.2/conf/modules.d/45_mod_dav.conf |
211 |
+++ b/2.2/conf/modules.d/45_mod_dav.conf |
212 |
@@ -1,45 +1,9 @@ |
213 |
<IfDefine DAV> |
214 |
-<IfModule dav_module> |
215 |
-<IfModule dav_fs_module> |
216 |
DavLockDB "/var/lib/dav/lockdb" |
217 |
|
218 |
-# The following example gives DAV write access to a directory called |
219 |
-# "uploads" under the ServerRoot directory. |
220 |
-<IfModule alias_module> |
221 |
-<IfModule auth_digest_module> |
222 |
-<IfModule authn_file_module> |
223 |
-Alias /uploads "/var/www/uploads" |
224 |
- |
225 |
-<Directory "/var/www/uploads"> |
226 |
- Dav On |
227 |
- |
228 |
- AuthType Digest |
229 |
- AuthName DAV-upload |
230 |
- |
231 |
- # You can use the htdigest program to create the password database: |
232 |
- # htdigest -c "/var/www/.htpasswd-dav" DAV-upload admin |
233 |
- AuthUserFile "/var/www/.htpasswd-dav" |
234 |
- |
235 |
- # Allow access from any host |
236 |
- Order allow,deny |
237 |
- Allow from all |
238 |
- |
239 |
- # Allow universal read-access, but writes are restricted |
240 |
- # to the admin user. |
241 |
- <LimitExcept GET OPTIONS> |
242 |
- require user admin |
243 |
- </LimitExcept> |
244 |
-</Directory> |
245 |
-</IfModule> |
246 |
-</IfModule> |
247 |
-</IfModule> |
248 |
- |
249 |
-</IfModule> |
250 |
-</IfModule> |
251 |
- |
252 |
# The following directives disable redirects on non-GET requests for |
253 |
-# a directory that does not include the trailing slash. This fixes a |
254 |
-# problem with several clients that do not appropriately handle |
255 |
+# a directory that does not include the trailing slash. This fixes a |
256 |
+# problem with several clients that do not appropriately handle |
257 |
# redirects for folders with DAV methods. |
258 |
<IfModule setenvif_module> |
259 |
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully |
260 |
@@ -50,7 +14,6 @@ BrowserMatch "^gnome-vfs/1.0" redirect-carefully |
261 |
BrowserMatch "^XML Spy" redirect-carefully |
262 |
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully |
263 |
</IfModule> |
264 |
- |
265 |
</IfDefine> |
266 |
|
267 |
# vim: ts=4 filetype=apache |
268 |
|
269 |
diff --git a/2.2/conf/modules.d/46_mod_ldap.conf b/2.2/conf/modules.d/46_mod_ldap.conf |
270 |
index 837bc6e..c2893f8 100644 |
271 |
--- a/2.2/conf/modules.d/46_mod_ldap.conf |
272 |
+++ b/2.2/conf/modules.d/46_mod_ldap.conf |
273 |
@@ -3,7 +3,6 @@ |
274 |
# http://localhost/manual/mod/mod_ldap.html |
275 |
# http://localhost/manual/mod/mod_auth_ldap.html |
276 |
<IfDefine LDAP> |
277 |
-<IfModule ldap_module> |
278 |
LDAPSharedCacheSize 200000 |
279 |
LDAPCacheEntries 1024 |
280 |
LDAPCacheTTL 600 |
281 |
@@ -16,14 +15,6 @@ LDAPOpCacheTTL 600 |
282 |
Deny from all |
283 |
Allow from 127.0.0.1 |
284 |
</Location> |
285 |
-</IfModule> |
286 |
-</IfDefine> |
287 |
- |
288 |
-<IfDefine AUTHNZ_LDAP> |
289 |
-<IfModule authnz_ldap_module> |
290 |
- #AuthLDAPURL ldap://ldap1.airius.com:389/ou=People, o=Airius?uid?sub?(objectClass=*) |
291 |
- #require valid-user |
292 |
-</IfModule> |
293 |
</IfDefine> |
294 |
|
295 |
# vim: ts=4 filetype=apache |