1 #############################################################################
2 # Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
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 ##############################################################################
11 ServerRoot "REPLACED_RUBBOS_APP_TOOLS/apache2"
13 <IfModule !mpm_winnt.c>
14 <IfModule !mpm_netware.c>
18 <IfModule !mpm_netware.c>
19 <IfModule !perchild.c>
23 <IfModule !mpm_netware.c>
24 PidFile logs/httpd.pid
29 MaxKeepAliveRequests 100
61 <IfModule mpm_winnt.c>
69 MaxRequestsPerThread 10000
72 <IfModule mpm_netware.c>
91 <IfModule !mpm_winnt.c>
92 <IfModule !mpm_netware.c>
98 ServerAdmin you@example.com
102 DocumentRoot "REPLACED_RUBBOS_APP_TOOLS/apache2/htdocs"
105 Options FollowSymLinks
109 <Directory "REPLACED_RUBBOS_APP_TOOLS/apache2/htdocs">
110 Options Indexes FollowSymLinks
117 DirectoryIndex index.html index.html.var
118 AccessFileName .htaccess
124 TypesConfig conf/mime.types
125 DefaultType text/plain
127 <IfModule mod_mime_magic.c>
128 MIMEMagicFile conf/magic
133 ErrorLog logs/error_log
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
143 Alias /icons/ "REPLACED_RUBBOS_APP_TOOLS/apache2/icons/"
145 <Directory "REPLACED_RUBBOS_APP_TOOLS/apache2/icons">
146 Options Indexes MultiViews
152 AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "REPLACED_RUBBOS_APP_TOOLS/apache2/manual$1"
154 <Directory "REPLACED_RUBBOS_APP_TOOLS/apache2/manual">
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
168 ScriptAlias /cgi-bin/ "REPLACED_RUBBOS_APP_TOOLS/apache2/cgi-bin/"
170 <IfModule mod_cgid.c>
173 <Directory "REPLACED_RUBBOS_APP_TOOLS/apache2/cgi-bin">
180 IndexOptions FancyIndexing VersionSort
181 AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
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/*
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
205 AddIcon /icons/back.gif ..
206 AddIcon /icons/hand.right.gif README
207 AddIcon /icons/folder.gif ^^DIRECTORY^^
208 AddIcon /icons/blank.gif ^^BLANKICON^^
210 DefaultIcon /icons/unknown.gif
212 ReadmeName README.html
213 HeaderName HEADER.html
215 IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
217 AddLanguage cs .cz .cs
237 AddLanguage pt-BR .pt-br
240 AddLanguage zh-CN .zh-cn
241 AddLanguage zh-TW .zh-tw
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
275 AddType application/x-compress .Z
276 AddType application/x-gzip .gz .tgz
277 AddHandler type-map var
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
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
290 Include conf/ssl.conf
294 LoadModule jk_module "REPLACED_RUBBOS_APP_TOOLS/apache2/modules/mod_jk.so"
296 # Where to find workers.properties
297 JkWorkersFile REPLACED_RUBBOS_APP_TOOLS/apache2/conf/workers.properties
299 # Where to put jk logs
300 JkLogFile REPLACED_RUBBOS_APP_TOOLS/apache2/logs/mod_jk.log
302 # Set the jk log level [debug/error/info]
305 # Select the log format
306 JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
308 # JkOptions indicate to send SSL KEY SIZE,
309 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
311 # JkRequestLogFormat set the request format
312 JkRequestLogFormat "%w %V %T"
314 # Globally deny access to the WEB-INF directory
315 <LocationMatch '.*WEB-INF.*'>
320 #Important: which requrests will be reouted to app server
321 JkMount /*/servlet/* worker1
322 JkMount /*.jsp worker1