Hitachi Web Server

[目次][用語][索引][前へ][次へ]

付録A.1 httpsd.confファイル(UNIX版)

#########################################################################
##
## httpsd.conf - Hitachi Web Server configuration file
##
##  All Rights Reserved. Copyright (C) 2000, 2007, Hitachi, Ltd.
#########################################################################
 
Listen 80
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 10000
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
HostnameLookups Off
 
User nobody
Group nogroup
 
ServerRoot "/opt/hitachi/httpsd"
 
ServerName www.example.com
DocumentRoot "/opt/hitachi/httpsd/htdocs"
#ScriptAlias /cgi-bin/ "/opt/hitachi/httpsd/cgi-bin/"
UserDir disabled
DirectoryIndex index.html
UseCanonicalName Off
ServerSignature Off
ServerTokens ProductOnly
TraceEnable Off
 
LogLevel info
ErrorLog "|/opt/hitachi/httpsd/sbin/rotatelogs2 /opt/hitachi/httpsd/logs/error 8192 5"
#ErrorLog logs/error_log
HWSRequestLog "|/opt/hitachi/httpsd/sbin/rotatelogs /opt/hitachi/httpsd/logs/hwsrequest 86400 -fnum 8 -diff 540"
#HWSRequestLog logs/hwsrequest_log
HWSSuppressModuleTrace mod_proxy.c hook
HWSSuppressModuleTrace mod_jk.c hook
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
LogFormat "%h %l %u %t \"%r\" %>s %b %P %I %O %X %D \"%{Referer}i\" \"%{User-Agent}i\"" hws_trace
LogFormat "%h %l %u %t \"%r\" %>s %b %T %P" hws_std
#HWSLogTimeVerbose On
CustomLog "|/opt/hitachi/httpsd/sbin/rotatelogs /opt/hitachi/httpsd/logs/access 86400 -fnum 8 -diff 540" common 
#CustomLog "|/opt/hitachi/httpsd/sbin/rotatelogs /opt/hitachi/httpsd/logs/access 86400 -fnum 8 -diff 540" hws_std
#CustomLog logs/access_log common
PidFile logs/httpd.pid
HWSTraceIdFile logs/hws.trcid
HWSTraceLogFile logs/hws.trclog
 
SSLDisable
#SSLEnable
#SSLCertificateFile "/opt/hitachi/httpsd/conf/ssl/server/httpsd.pem"
#SSLCertificateKeyFile "/opt/hitachi/httpsd/conf/ssl/server/httpsdkey.pem"
#SSLCertificateKeyPassword "/opt/hitachi/httpsd/conf/ssl/server/.keypasswd"
#SSLCACertificateFile "/opt/hitachi/httpsd/conf/ssl/cacert/anycert.pem"
#SSLProtocol SSLv3 TLSv1
#SSLRequiredCiphers RC4-MD5:RC4-SHA:DES-CBC3-SHA:AES128-SHA:AES256-SHA
#SSLVerifyClient 0
#SSLVerifyDepth 3
#SSLCacheServerPath sbin/gcache
#SSLCacheServerPort logs/gcache_port
#SSLSessionCacheTimeout 3600
 
#LoadModule proxy_module libexec/mod_proxy.so
#LoadModule proxy_http_module libexec/mod_proxy_http.so
#ProxyPass / http://backend.example.com/
#ProxyPassReverse / http://backend.example.com/
#ProxyVia Off
 
TypesConfig conf/mime.types
DefaultType text/plain
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw
#LanguagePriority ja en ca cs da de el eo es et fr he hr it ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
 
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
 
Alias /icons/ "/opt/hitachi/httpsd/icons/"
IndexOptions FancyIndexing
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README.html
HeaderName HEADER.html
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
 
<Directory />
        Options None
        AllowOverride None
#       <Limit PUT DELETE>
#               Order deny,allow
#               Deny from all
#       </Limit>
#       SSLRequireSSL
</Directory>
 
<Directory "/opt/hitachi/httpsd/htdocs">
        Options None
        AllowOverride None
</Directory>
 
#Alias /manual "/opt/hitachi/httpsd/manual"
#<Directory "/opt/hitachi/httpsd/manual">
#       Options None
#       AllowOverride None
#       DirectoryIndex INDEX.HTM
#</Directory>
 
<FilesMatch "^\.(ht|key)">
        Order allow,deny
        Deny from all
</FilesMatch>
 
#<Location /server-status>
#       SetHandler server-status
#       Order deny,allow
#       Deny from all
#       Allow from example.com
#</Location>