|
1 ## |
|
2 ## apache.base -- Apache Base/Default Configuration |
|
3 ## ______________________________________________________ |
|
4 ## |
|
5 ## PLEASE DO NOT EDIT THIS FILE!! ADJUST CONFIGURATION BY |
|
6 ## OVERRIDING DIRECTIVES IN "apache.conf" INSTEAD, PLEASE! |
|
7 ## ______________________________________________________ |
|
8 ## |
|
9 |
|
10 # global server |
|
11 ServerRoot @l_prefix@ |
|
12 ServerAdmin root@@l_hostname@.@l_domainname@ |
|
13 ServerName @l_hostname@.@l_domainname@ |
|
14 ServerTokens os |
|
15 User @l_nusr@ |
|
16 Group @l_ngrp@ |
|
17 |
|
18 # runtime files |
|
19 LockFile @l_prefix@/var/apache/run/apache.lock |
|
20 <IfModule mpm_prefork_module> |
|
21 PidFile @l_prefix@/var/apache/run/apache.pid |
|
22 ScoreBoardFile @l_prefix@/var/apache/run/apache.sb |
|
23 </IfModule> |
|
24 <IfModule cgid_module> |
|
25 ScriptSock @l_prefix@/var/apache/run/apache.cgisock |
|
26 </IfModule> |
|
27 |
|
28 # server behaviour |
|
29 Timeout 300 |
|
30 KeepAlive on |
|
31 MaxKeepAliveRequests 100 |
|
32 KeepAliveTimeout 15 |
|
33 <IfModule mpm_prefork_module> |
|
34 MinSpareServers 5 |
|
35 MaxSpareServers 10 |
|
36 StartServers 5 |
|
37 MaxClients 150 |
|
38 MaxRequestsPerChild 0 |
|
39 </IfModule> |
|
40 <IfModule mpm_worker_module> |
|
41 MinSpareThreads 25 |
|
42 MaxSpareThreads 75 |
|
43 ThreadsPerChild 25 |
|
44 StartServers 2 |
|
45 ServerLimit 16 |
|
46 MaxClients 150 |
|
47 MaxRequestsPerChild 0 |
|
48 </IfModule> |
|
49 HostnameLookups off |
|
50 UseCanonicalName on |
|
51 |
|
52 # access logging |
|
53 <IfModule log_config_module> |
|
54 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined |
|
55 <IfModule logio_module> |
|
56 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combined_io |
|
57 </IfModule> |
|
58 <IfModule ssl_module> |
|
59 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %{SSL_PROTOCOL}x %{SSL_CIPHER}x" combined_ssl |
|
60 </IfModule> |
|
61 LogFormat "%h %l %u %t \"%r\" %>s %b" common |
|
62 LogFormat "%{Referer}i -> %U" referer |
|
63 LogFormat "%{User-agent}i" agent |
|
64 CustomLog @l_prefix@/var/apache/log/access.log common env=!ignore_global_access |
|
65 </IfModule> |
|
66 |
|
67 # error logging |
|
68 LogLevel warn |
|
69 ErrorLog @l_prefix@/var/apache/log/error.log |
|
70 ServerSignature on |
|
71 |
|
72 # script logging |
|
73 <IfModule cgi_module> |
|
74 ScriptLog @l_prefix@/var/apache/log/script.log |
|
75 ScriptLogBuffer 1024 |
|
76 ScriptLogLength 10485760 |
|
77 </IfModule> |
|
78 |
|
79 # secure root directory |
|
80 <Directory /> |
|
81 Options FollowSymLinks |
|
82 AllowOverride None |
|
83 Order deny,allow |
|
84 Deny from all |
|
85 </Directory> |
|
86 |
|
87 # configure global document root |
|
88 DocumentRoot @l_prefix@/share/apache/htdocs |
|
89 <IfModule alias_module> |
|
90 Alias /apache-htdocs @l_prefix@/share/apache/htdocs |
|
91 </IfModule> |
|
92 <Directory "@l_prefix@/share/apache/htdocs"> |
|
93 Options Indexes FollowSymLinks MultiViews |
|
94 AllowOverride none |
|
95 Order allow,deny |
|
96 Allow from all |
|
97 </Directory> |
|
98 |
|
99 # default directories and files |
|
100 <IfModule userdir_module> |
|
101 UserDir public_html |
|
102 UserDir disabled root |
|
103 </IfModule> |
|
104 <IfModule dir_module> |
|
105 DirectoryIndex index.html |
|
106 </IfModule> |
|
107 |
|
108 # local configuration files |
|
109 AccessFileName .htaccess |
|
110 <Files ~ "^\.ht"> |
|
111 Order allow,deny |
|
112 Deny from all |
|
113 Satisfy All |
|
114 </Files> |
|
115 |
|
116 # global Icons and CGI directory |
|
117 <IfModule alias_module> |
|
118 Alias /apache-icons @l_prefix@/share/apache/icons |
|
119 <Directory "@l_prefix@/share/apache/icons"> |
|
120 Options Indexes MultiViews |
|
121 AllowOverride None |
|
122 Order allow,deny |
|
123 Allow from all |
|
124 </Directory> |
|
125 AliasMatch ^/apache-manual(?:/(?:de|en|es|fr|ja|ko|pt-br|ru))?(/.*)?$ @l_prefix@/share/apache/manual$1 |
|
126 <Directory "@l_prefix@/share/apache/manual"> |
|
127 Options Indexes |
|
128 AllowOverride None |
|
129 Order allow,deny |
|
130 Allow from all |
|
131 <Files *.html> |
|
132 SetHandler type-map |
|
133 </Files> |
|
134 SetEnvIf Request_URI ^/apache-manual/(de|en|es|fr|ja|ko|pt-br|ru)/ prefer-language=$1 |
|
135 RedirectMatch 301 ^/apache-manual(?:/(de|en|es|fr|ja|ko|pt-br|ru)){2,}(/.*)?$ /apache-manual/$1$2 |
|
136 LanguagePriority en de es fr ja ko pt-br ru |
|
137 ForceLanguagePriority Prefer Fallback |
|
138 </Directory> |
|
139 Alias /apache-error @l_prefix@/share/apache/error |
|
140 <Directory "@l_prefix@/share/apache/error"> |
|
141 Options IncludesNoExec |
|
142 AllowOverride None |
|
143 Order allow,deny |
|
144 Allow from all |
|
145 AddOutputFilter Includes html |
|
146 AddHandler type-map var |
|
147 LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr |
|
148 ForceLanguagePriority Prefer Fallback |
|
149 </Directory> |
|
150 ScriptAlias /openpkg-cgi "@l_prefix@/cgi" |
|
151 <Directory "@l_prefix@/cgi"> |
|
152 AllowOverride None |
|
153 Options None |
|
154 Order allow,deny |
|
155 Allow from all |
|
156 </Directory> |
|
157 </IfModule> |
|
158 |
|
159 # global server status information |
|
160 <IfModule status_module> |
|
161 ExtendedStatus on |
|
162 <Location /apache-server-status> |
|
163 SetHandler server-status |
|
164 Order deny,allow |
|
165 Deny from all |
|
166 Allow from 127.0.0.1 |
|
167 </Location> |
|
168 <Location /apache-server-info> |
|
169 SetHandler server-info |
|
170 Order deny,allow |
|
171 Deny from all |
|
172 Allow from 127.0.0.1 |
|
173 </Location> |
|
174 </IfModule> |
|
175 |
|
176 # automatic CGI and SSI recognition |
|
177 <IfModule mime_module> |
|
178 <IfModule cgi_module> |
|
179 AddHandler cgi-script .cgi |
|
180 </IfModule> |
|
181 <IfModule include_module> |
|
182 AddType text/html .shtml |
|
183 AddOutputFilter INCLUDES .shtml |
|
184 </IfModule> |
|
185 </IfModule> |
|
186 |
|
187 # multi-language error documents |
|
188 ErrorDocument 400 /apache-error/HTTP_BAD_REQUEST.html.var |
|
189 ErrorDocument 401 /apache-error/HTTP_UNAUTHORIZED.html.var |
|
190 ErrorDocument 403 /apache-error/HTTP_FORBIDDEN.html.var |
|
191 ErrorDocument 404 /apache-error/HTTP_NOT_FOUND.html.var |
|
192 ErrorDocument 405 /apache-error/HTTP_METHOD_NOT_ALLOWED.html.var |
|
193 ErrorDocument 408 /apache-error/HTTP_REQUEST_TIME_OUT.html.var |
|
194 ErrorDocument 410 /apache-error/HTTP_GONE.html.var |
|
195 ErrorDocument 411 /apache-error/HTTP_LENGTH_REQUIRED.html.var |
|
196 ErrorDocument 412 /apache-error/HTTP_PRECONDITION_FAILED.html.var |
|
197 ErrorDocument 413 /apache-error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var |
|
198 ErrorDocument 414 /apache-error/HTTP_REQUEST_URI_TOO_LARGE.html.var |
|
199 ErrorDocument 415 /apache-error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var |
|
200 ErrorDocument 500 /apache-error/HTTP_INTERNAL_SERVER_ERROR.html.var |
|
201 ErrorDocument 501 /apache-error/HTTP_NOT_IMPLEMENTED.html.var |
|
202 ErrorDocument 502 /apache-error/HTTP_BAD_GATEWAY.html.var |
|
203 ErrorDocument 503 /apache-error/HTTP_SERVICE_UNAVAILABLE.html.var |
|
204 ErrorDocument 506 /apache-error/HTTP_VARIANT_ALSO_VARIES.html.var |
|
205 |
|
206 # automatic directory indexing |
|
207 <IfModule autoindex_module> |
|
208 IndexOptions FancyIndexing HTMLTable VersionSort |
|
209 ReadmeName README |
|
210 HeaderName HEADER |
|
211 IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t |
|
212 DefaultIcon /apache-icons/unknown.gif |
|
213 AddIcon /apache-icons/back.gif .. |
|
214 AddIcon /apache-icons/dir.gif ^^DIRECTORY^^ |
|
215 AddIcon /apache-icons/blank.gif ^^BLANKICON^^ |
|
216 AddIcon /apache-icons/binary.gif .bin .exe |
|
217 AddIcon /apache-icons/binhex.gif .hqx |
|
218 AddIcon /apache-icons/tar.gif .tar |
|
219 AddIcon /apache-icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv |
|
220 AddIcon /apache-icons/compressed.gif .Z .z .tgz .gz .zip |
|
221 AddIcon /apache-icons/a.gif .ps .ai .eps |
|
222 AddIcon /apache-icons/layout.gif .html .shtml .htm .pdf |
|
223 AddIcon /apache-icons/text.gif .txt |
|
224 AddIcon /apache-icons/c.gif .c |
|
225 AddIcon /apache-icons/p.gif .pl .py |
|
226 AddIcon /apache-icons/f.gif .for |
|
227 AddIcon /apache-icons/dvi.gif .dvi |
|
228 AddIcon /apache-icons/uuencoded.gif .uu |
|
229 AddIcon /apache-icons/script.gif .conf .sh .shar .csh .ksh .tcl |
|
230 AddIcon /apache-icons/tex.gif .tex |
|
231 AddIcon /apache-icons/bomb.gif core |
|
232 AddIconByEncoding (CMP,/apache-icons/compressed.gif) x-compress x-gzip |
|
233 AddIconByType (TXT,/apache-icons/text.gif) text/* |
|
234 AddIconByType (IMG,/apache-icons/image2.gif) image/* |
|
235 AddIconByType (SND,/apache-icons/sound2.gif) audio/* |
|
236 AddIconByType (VID,/apache-icons/movie.gif) video/* |
|
237 </IfModule> |
|
238 |
|
239 # MIME types and content negotiation |
|
240 DefaultType text/plain |
|
241 <IfModule mime_module> |
|
242 TypesConfig @l_prefix@/etc/apache/mime.types |
|
243 AddType application/x-compress .Z |
|
244 AddType application/x-gzip .gz .tgz |
|
245 AddType application/x-tar .tar |
|
246 AddEncoding x-compress Z |
|
247 AddEncoding x-gzip gz tgz |
|
248 AddLanguage da .dk |
|
249 AddLanguage nl .nl |
|
250 AddLanguage en .en |
|
251 AddLanguage et .ee |
|
252 AddLanguage fr .fr |
|
253 AddLanguage de .de |
|
254 AddLanguage el .el |
|
255 AddLanguage he .he |
|
256 AddCharset ISO-8859-8 .iso8859-8 |
|
257 AddLanguage it .it |
|
258 AddLanguage ja .ja |
|
259 AddCharset ISO-2022-JP .jis |
|
260 AddLanguage kr .kr |
|
261 AddCharset ISO-2022-KR .iso-kr |
|
262 AddLanguage no .no |
|
263 AddLanguage pl .po |
|
264 AddCharset ISO-8859-2 .iso-pl |
|
265 AddLanguage pt .pt |
|
266 AddLanguage pt-br .pt-br |
|
267 AddLanguage ltz .lu |
|
268 AddLanguage ca .ca |
|
269 AddLanguage es .es |
|
270 AddLanguage sv .se |
|
271 AddLanguage cz .cz |
|
272 AddLanguage ru .ru |
|
273 AddLanguage tw .tw |
|
274 AddCharset Big5 .Big5 .big5 |
|
275 AddCharset WINDOWS-1251 .cp-1251 |
|
276 AddCharset CP866 .cp866 |
|
277 AddCharset ISO-8859-5 .iso-ru |
|
278 AddCharset KOI8-R .koi8-r |
|
279 AddCharset UCS-2 .ucs2 |
|
280 AddCharset UCS-4 .ucs4 |
|
281 AddCharset UTF-8 .utf8 |
|
282 </IfModule> |
|
283 <IfModule negotiation_module> |
|
284 AddHandler type-map .var |
|
285 LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW |
|
286 ForceLanguagePriority Prefer Fallback |
|
287 </IfModule> |
|
288 <IfModule mime_magic_module> |
|
289 MIMEMagicFile @l_prefix@/etc/apache/mime.magic |
|
290 </IfModule> |
|
291 |
|
292 # SSL/TLS support |
|
293 <IfModule ssl_module> |
|
294 SSLRandomSeed startup builtin |
|
295 SSLRandomSeed connect builtin |
|
296 SSLMutex sem |
|
297 SSLCADNRequestFile @l_prefix@/etc/x509/public-ca.crt.pem |
|
298 SSLCACertificateFile @l_prefix@/etc/x509/public-ca.crt.pem |
|
299 SSLSessionCache shm:@l_prefix@/var/apache/run/apache.ssl_scache(512000) |
|
300 SSLSessionCacheTimeout 300 |
|
301 SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL |
|
302 <IfModule setenvif_module> |
|
303 SetEnvIf User-Agent ".*MSIE.*" \ |
|
304 nokeepalive ssl-unclean-shutdown \ |
|
305 downgrade-1.0 force-response-1.0 |
|
306 </IfModule> |
|
307 <Files ~ "\.(cgi|shtml|pl|phtml|php?)$"> |
|
308 SSLOptions +StdEnvVars |
|
309 </Files> |
|
310 <Directory "@l_prefix@/cgi"> |
|
311 SSLOptions +StdEnvVars |
|
312 </Directory> |
|
313 AddType application/x-x509-ca-cert .crt |
|
314 AddType application/x-pkcs7-crl .crl |
|
315 </IfModule> |
|
316 |
|
317 # DAV support |
|
318 <IfModule dav_module> |
|
319 DavLockDB @l_prefix@/var/apache/run/apache.dav/lock |
|
320 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully |
|
321 BrowserMatch "MS FrontPage" redirect-carefully |
|
322 BrowserMatch "^WebDrive" redirect-carefully |
|
323 BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully |
|
324 BrowserMatch "^gnome-vfs/1.0" redirect-carefully |
|
325 BrowserMatch "^XML Spy" redirect-carefully |
|
326 BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully |
|
327 </IfModule> |
|
328 |
|
329 # Cache support |
|
330 <IfModule disk_cache_module> |
|
331 CacheRoot @l_prefix@/var/apache/run/apache.cache |
|
332 CacheMaxFileSize 1000000 |
|
333 CacheMinFileSize 1 |
|
334 CacheDirLength 2 |
|
335 CacheDirLevels 3 |
|
336 </IfModule> |
|
337 |
|
338 # Compression support |
|
339 <IfModule deflate_module> |
|
340 DeflateCompressionLevel 1 |
|
341 DeflateMemLevel 9 |
|
342 DeflateWindowSize 15 |
|
343 DeflateBufferSize 8096 |
|
344 DeflateFilterNote Ratio deflate_ratio |
|
345 AddOutputFilterByType DEFLATE text/plain text/html text/xml application/javascript application/json text/css |
|
346 </IfModule> |
|
347 |