Merge "Change PTL informatin in INFO"
[bottlenecks.git] / testsuites / rubbos / puppet_manifests / modules / rubbos_httpd / files / apache_conf / httpd.conf
1 #############################################################################
2 # Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10
11 ServerRoot "REPLACED_RUBBOS_APP_TOOLS/apache2"
12
13 <IfModule !mpm_winnt.c>
14 <IfModule !mpm_netware.c>
15 </IfModule>
16 </IfModule>
17
18 <IfModule !mpm_netware.c>
19 <IfModule !perchild.c>
20 </IfModule>
21 </IfModule>
22
23 <IfModule !mpm_netware.c>
24 PidFile logs/httpd.pid
25 </IfModule>
26
27 Timeout 5
28 KeepAlive Off
29 MaxKeepAliveRequests 100
30 KeepAliveTimeout 15
31
32 <IfModule prefork.c>
33 StartServers         5
34 MinSpareServers      5
35 MaxSpareServers     10
36 ServerLimit       4000
37 MaxClients        4000
38 MaxRequestsPerChild  0
39 </IfModule>
40
41 <IfModule worker.c>
42 ServerLimit         200
43 ThreadLimit         300
44 StartServers        1
45 MaxClients          300
46 MinSpareThreads     5
47 MaxSpareThreads     50
48 ThreadsPerChild     150
49 MaxRequestsPerChild 0
50 </IfModule>
51
52 <IfModule perchild.c>
53 NumServers           5
54 StartThreads         5
55 MinSpareThreads      5
56 MaxSpareThreads     10
57 MaxThreadsPerChild  20
58 MaxRequestsPerChild  0
59 </IfModule>
60
61 <IfModule mpm_winnt.c>
62 ThreadsPerChild 250
63 MaxRequestsPerChild  0
64 </IfModule>
65
66 <IfModule beos.c>
67 StartThreads               10
68 MaxClients                 50
69 MaxRequestsPerThread       10000
70 </IfModule>
71
72 <IfModule mpm_netware.c>
73 ThreadStackSize      65536
74 StartThreads           250
75 MinSpareThreads         25
76 MaxSpareThreads        250
77 MaxThreads            1000
78 MaxRequestsPerChild      0
79 MaxMemFree             100
80 </IfModule>
81
82 <IfModule mpmt_os2.c>
83 StartServers           2
84 MinSpareThreads        5
85 MaxSpareThreads       10
86 MaxRequestsPerChild    0
87 </IfModule>
88
89 Listen 8000
90
91 <IfModule !mpm_winnt.c>
92 <IfModule !mpm_netware.c>
93 User apache
94 Group apache
95 </IfModule>
96 </IfModule>
97
98 ServerAdmin you@example.com
99
100 UseCanonicalName Off
101
102 DocumentRoot "REPLACED_RUBBOS_APP_TOOLS/apache2/htdocs"
103
104 <Directory />
105     Options FollowSymLinks
106     AllowOverride None
107 </Directory>
108
109 <Directory "REPLACED_RUBBOS_APP_TOOLS/apache2/htdocs">
110     Options Indexes FollowSymLinks
111     AllowOverride None
112     Order allow,deny
113     Allow from all
114 </Directory>
115
116 UserDir public_html
117 DirectoryIndex index.html index.html.var
118 AccessFileName .htaccess
119 <Files ~ "^\.ht">
120     Order allow,deny
121     Deny from all
122 </Files>
123
124 TypesConfig conf/mime.types
125 DefaultType text/plain
126
127 <IfModule mod_mime_magic.c>
128     MIMEMagicFile conf/magic
129 </IfModule>
130
131 HostnameLookups Off
132
133 ErrorLog logs/error_log
134 LogLevel warn
135 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
136 LogFormat "%h %l %u %t \"%r\" %>s %b" common
137 LogFormat "%{Referer}i -> %U" referer
138 LogFormat "%{User-agent}i" agent
139 CustomLog logs/access_log common
140
141 ServerTokens Full
142 ServerSignature On
143 Alias /icons/ "REPLACED_RUBBOS_APP_TOOLS/apache2/icons/"
144
145 <Directory "REPLACED_RUBBOS_APP_TOOLS/apache2/icons">
146     Options Indexes MultiViews
147     AllowOverride None
148     Order allow,deny
149     Allow from all
150 </Directory>
151
152 AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "REPLACED_RUBBOS_APP_TOOLS/apache2/manual$1"
153
154 <Directory "REPLACED_RUBBOS_APP_TOOLS/apache2/manual">
155     Options Indexes
156     AllowOverride None
157     Order allow,deny
158     Allow from all
159
160     <Files *.html>
161         SetHandler type-map
162     </Files>
163
164     SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
165     RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
166 </Directory>
167
168 ScriptAlias /cgi-bin/ "REPLACED_RUBBOS_APP_TOOLS/apache2/cgi-bin/"
169
170 <IfModule mod_cgid.c>
171 </IfModule>
172
173 <Directory "REPLACED_RUBBOS_APP_TOOLS/apache2/cgi-bin">
174     AllowOverride None
175     Options None
176     Order allow,deny
177     Allow from all
178 </Directory>
179
180 IndexOptions FancyIndexing VersionSort
181 AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
182
183 AddIconByType (TXT,/icons/text.gif) text/*
184 AddIconByType (IMG,/icons/image2.gif) image/*
185 AddIconByType (SND,/icons/sound2.gif) audio/*
186 AddIconByType (VID,/icons/movie.gif) video/*
187
188 AddIcon /icons/binary.gif .bin .exe
189 AddIcon /icons/binhex.gif .hqx
190 AddIcon /icons/tar.gif .tar
191 AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
192 AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
193 AddIcon /icons/a.gif .ps .ai .eps
194 AddIcon /icons/layout.gif .html .shtml .htm .pdf
195 AddIcon /icons/text.gif .txt
196 AddIcon /icons/c.gif .c
197 AddIcon /icons/p.gif .pl .py
198 AddIcon /icons/f.gif .for
199 AddIcon /icons/dvi.gif .dvi
200 AddIcon /icons/uuencoded.gif .uu
201 AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
202 AddIcon /icons/tex.gif .tex
203 AddIcon /icons/bomb.gif core
204
205 AddIcon /icons/back.gif ..
206 AddIcon /icons/hand.right.gif README
207 AddIcon /icons/folder.gif ^^DIRECTORY^^
208 AddIcon /icons/blank.gif ^^BLANKICON^^
209
210 DefaultIcon /icons/unknown.gif
211
212 ReadmeName README.html
213 HeaderName HEADER.html
214
215 IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
216 AddLanguage ca .ca
217 AddLanguage cs .cz .cs
218 AddLanguage da .dk
219 AddLanguage de .de
220 AddLanguage el .el
221 AddLanguage en .en
222 AddLanguage eo .eo
223 AddLanguage es .es
224 AddLanguage et .et
225 AddLanguage fr .fr
226 AddLanguage he .he
227 AddLanguage hr .hr
228 AddLanguage it .it
229 AddLanguage ja .ja
230 AddLanguage ko .ko
231 AddLanguage ltz .ltz
232 AddLanguage nl .nl
233 AddLanguage nn .nn
234 AddLanguage no .no
235 AddLanguage pl .po
236 AddLanguage pt .pt
237 AddLanguage pt-BR .pt-br
238 AddLanguage ru .ru
239 AddLanguage sv .sv
240 AddLanguage zh-CN .zh-cn
241 AddLanguage zh-TW .zh-tw
242
243 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
244 ForceLanguagePriority Prefer Fallback
245 AddCharset ISO-8859-1  .iso8859-1  .latin1
246 AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
247 AddCharset ISO-8859-3  .iso8859-3  .latin3
248 AddCharset ISO-8859-4  .iso8859-4  .latin4
249 AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru
250 AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb
251 AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk
252 AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb
253 AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk
254 AddCharset ISO-2022-JP .iso2022-jp .jis
255 AddCharset ISO-2022-KR .iso2022-kr .kis
256 AddCharset ISO-2022-CN .iso2022-cn .cis
257 AddCharset Big5        .Big5       .big5
258 # For russian, more than one charset is used (depends on client, mostly):
259 AddCharset WINDOWS-1251 .cp-1251   .win-1251
260 AddCharset CP866       .cp866
261 AddCharset KOI8-r      .koi8-r .koi8-ru
262 AddCharset KOI8-ru     .koi8-uk .ua
263 AddCharset ISO-10646-UCS-2 .ucs2
264 AddCharset ISO-10646-UCS-4 .ucs4
265 AddCharset UTF-8       .utf8
266 AddCharset GB2312      .gb2312 .gb
267 AddCharset utf-7       .utf7
268 AddCharset utf-8       .utf8
269 AddCharset big5        .big5 .b5
270 AddCharset EUC-TW      .euc-tw
271 AddCharset EUC-JP      .euc-jp
272 AddCharset EUC-KR      .euc-kr
273 AddCharset shift_jis   .sjis
274
275 AddType application/x-compress .Z
276 AddType application/x-gzip .gz .tgz
277 AddHandler type-map var
278
279 BrowserMatch "Mozilla/2" nokeepalive
280 BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
281 BrowserMatch "RealPlayer 4\.0" force-response-1.0
282 BrowserMatch "Java/1\.0" force-response-1.0
283 BrowserMatch "JDK/1\.0" force-response-1.0
284
285 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
286 BrowserMatch "^WebDrive" redirect-carefully
287 BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
288 BrowserMatch "^gnome-vfs" redirect-carefully
289 <IfModule mod_ssl.c>
290     Include conf/ssl.conf
291 </IfModule>
292
293
294 LoadModule jk_module "REPLACED_RUBBOS_APP_TOOLS/apache2/modules/mod_jk.so"
295
296 # Where to find workers.properties
297 JkWorkersFile REPLACED_RUBBOS_APP_TOOLS/apache2/conf/workers.properties
298
299 # Where to put jk logs
300 JkLogFile     REPLACED_RUBBOS_APP_TOOLS/apache2/logs/mod_jk.log
301
302 # Set the jk log level [debug/error/info]
303 JkLogLevel    info
304
305 # Select the log format
306 JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
307
308 # JkOptions indicate to send SSL KEY SIZE,
309 JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
310
311 # JkRequestLogFormat set the request format
312 JkRequestLogFormat     "%w %V %T"
313
314 # Globally deny access to the WEB-INF directory
315 <LocationMatch '.*WEB-INF.*'>
316        AllowOverride None
317        deny from all
318 </LocationMatch>
319
320 #Important: which requrests will be reouted to app server
321 JkMount     /*/servlet/* worker1
322 JkMount     /*.jsp worker1
323
324 ServerName localhost