最初のページに戻ります。

総合の目次があるページに戻ります。

よく使うマニュアルです

Wiki

updated on 2004.06.23

20.6.1 HTTP configuration

[ HOME ] [ Upper ]


#               IBM HTTP Server for AS/400
#               IBM HTTP Server for AS/400 
# NOTE:  Lines starting with a "#" are comments.            
#        Inline comments are not allowed.  For example,     
#        do not have a "#" on the same line as MAP          
#        statement.                                         
# 注意:  #で始まる行は、コメントです。            
#        インラインのコメントは出来ません。たとえば、   
#        MAPステートメントと同じ行に、#を入れては
#        いけません。   
#            *** HOSTNAME DIRECTIVES ***                    
#                                                           
# HostName your AS/400 uses when generating references      
# to itself. This value will be set to the value set in     
# CFGTCP, Option 12, when not specified here.               
#                                                           
# Syntax:                                                   
#   HostName                 <your.full.host.name>          
#                                                           
#            *** ホスト名 指令 ***                    
#                                                           
# 自分自身への参照を生成するときに、HostNameをAS/400は使います  
# この値は、もしここで指定されていなければ、CFGTCPのオプション12
# の値の中でセットされます
#                                                           
# 構文:                                                   
#   HostName                 <your.full.host.name>          
#                                                           
#             *** PORT DIRECTIVES ***                       
#                                                           
# The default port for HTTP is 80.  If you change this      
# use a port number greater than 1024.                      
#                                                           
#                                                           
# Syntax:                                                   
#   Port                      <port number>                 

#  Port                          80                         
#                                                          
#             *** ポート 指令 ***                       
#                                                           
# HTTPの省略値のポートは80です。もし、これを変更するときは、    
# 1024より大きなポート番号を使いなさい                      
#                                                           
#                                                           
# 構文:                                                   
#   Port                      <port number>                 
     
#  Port                          80                         
#  
#             *** METHOD DIRECTIVES ***                     
#                                                           
# GET and HEAD are enabled by default.  POST will need  
# be enabled for CGI and Net.Data.                          
#                                                           
# Syntax:                                                   
#   Disable                   <GET ! HEAD ! POST>           
#   Enable                    <GET ! HEAD ! POST>           

#  Enable                     GET                           
#  Enable                     HEAD                          
#  Enable                     POST                          
# 
#             *** メソッド指令 ***                     
#                                                           
# GETやHEADは、規定値では、使用可能です。POSTは、CGIやNet.Data 
# の為に、使用可能にする必要があります。                     
#                                                           
# 構文:                                                   
#   Disable                   <GET ! HEAD ! POST>           
#   Enable                    <GET ! HEAD ! POST>           

#  Enable                     GET                           
#  Enable                     HEAD                          
#  Enable                     POST                          
#  
#             *** MAPPING DIRECTIVES ***                    
#                                                           
# Mapping to AS/400 IFS library objects requires the        
# object to have PUBLIC(*RX) authority.                     
#                                                           
# Mapping to AS/400 QSYS.LIB library objects requires       
# the QTMHHTTP user profile to have read access to the      
# object or the object to have PUBLIC(*USE) authority.      
#                                                           
# The <template> is the string used to match the            
# incoming request or HTML link (URL).  The template is     
# mapped to replacement location on the server.  Once a     
# matching Pass, Exec, Redirect, or Fail template is        
# found, all subsequent rules are ignored.                  
# A match on Map rule changes the request to the            
# value in replacement and continues searching for a        
# Pass, Exec, Redirect or Fail.                             
#                                                           
#   - To serve documents or images, use Pass directives    
#   - To run CGI or Net.Data, use Exec                      
#     directives.                                           
#   - To send the request to another server, use Redire   
#     directives.                                           
#   - To prevent access to a particular location that       
#     a subsequent rule would allow access to, use the      
#     Fail directive.                                       
#   - All requests that do not match a template on the      
#     Pass, Exec or Redirect will Fail by default and       
#     generate a "403 - Forbidden by rule" error.           
#                                                           
# Syntax:                                                   
#    Map      <template> <replacement>                      
#    Pass     <template> <replacement>                      
#    Exec     <template> <replacement>                      
#    Redirect <template> <replacement>                      
#    Fail     <template>                                    
#                                                           
#  Map   /test/*     /as400/*                               
#  Pass  /as400/*    /QDLS/400HOME/*                        
#  Pass  /httpfile/* /QSYS.LIB/AS400LIB.LIB/HTML.FILE/*     
#  Pass  /doc/*      /QDLS/graphics/*                       
#  Pass  /file/*     /www/webdata/*                         
#  Fail  /QIBM/UserData/private/*                           
#  Pass  /QIBM/UserData/*                                   
#  Redirect  /wsg    http://hostname:5061/WSG               
#                                                           
#  HTTP server CGI programs must find an Exec directive   
#  This Exec directive refers to a path where the CGI       
#  program is stored.                                       
#                                                           
#  Exec  /cgi-bin/*  /QSYS.LIB/MYCGI.LIB/*                  
#                                                           
#  The next two Pass directives are shipped in the IBM     
#  Server for AS/400 server configuration in                
#  V4R3.  The first Pass directive serves a sample file     
#  called Welcome.html for a request of the form            
#  http://hostname/. The second Pass directive allows       
#  image files referenced in the Welcome.html file to       
#  be served.                                               
#  To serve your own server home page change the first     
#  directive to point to your welcome page location.        
#                                                           
Pass /  /QIBM/ProdData/HTTP/Public/HTTPSVR/HTML/Welcome.html
Pass /sample/*  /QIBM/ProdData/HTTP/Public/HTTPSVR/HTML/* 
#          
#             *** マッピング指令 ***                    
#                                                           
# AS/400 IFSライブラリーオブジェクトへのマッピングは、
# そのオブジェクトに、PUBLIC(*RX)の権限を持つことを要する。 
#                                                           
# AS/400のQSYS.LIBライブラリーオブジェクトへのマッピングは、   
# ユーザープロファイルQTMHHTTPがオブジェクトを読み込み可能であること
# もしくは、そのオブジェクトがPUBLIC(*USE)権限を持つことを要します。
#                                                           
# <template>は、入ってきた要求や、HTMLのリンク(URL)に合わせる
# 為に、使われる文字列です。templateは、サーバー上の、代替の場所
# へマップされます。いったん、Pass、Exec、RedirectもしくはFailの
# templateが見つかると、全ての後続のルールは無視されます。
#                 
# Mapルールに一致すると、要求は、replacement(置換え値)に変更されて
# そして、Pass, Exec, Redirectもしくは Failを検索し続けます。
#                             
#                                                           
#   - ドキュメントやイメージをサーブするには Pass 指令を使いなさい
#   - CGI や Net.Data, を実行するには Exec 指令を使いなさい. 
#                                                
#   - 別のサーバーに要求を送るためには Redire 指令を使いなさい。
#
#   - 後続のルールがアクセスを許された特別な場所、へのアクセスを、
#     妨げるためには Fail 指令を使いなさい。      
#                                           
#   - Pass, Exec や Redirectのtemplateに一致しない全ての要求は、
#     省略値としてFailします。そして、       
#     "403 - Forbidden by rule"エラーを生成します。           
#                                                           
# 構文:                                                   
#    Map      <template> <replacement>                      
#    Pass     <template> <replacement>                      
#    Exec     <template> <replacement>                      
#    Redirect <template> <replacement>                      
#    Fail     <template>                                    
#                                                           
#  Map   /test/*     /as400/*                               
#  Pass  /as400/*    /QDLS/400HOME/*                        
#  Pass  /httpfile/* /QSYS.LIB/AS400LIB.LIB/HTML.FILE/*     
#  Pass  /doc/*      /QDLS/graphics/*                       
#  Pass  /file/*     /www/webdata/*                         
#  Fail  /QIBM/UserData/private/*                           
#  Pass  /QIBM/UserData/*                                   
#  Redirect  /wsg    http://hostname:5061/WSG               
#                                                           
#  HTTPサーバーCGIプログラムはExec指令を見付けなくてはなりません。
#  このExec 指令は、CGIプログラムが置かれたところへのパスを参照 
#  します。
#                                                           
#  Exec  /cgi-bin/*  /QSYS.LIB/MYCGI.LIB/*                  
#                                                           
#  次の2つのPass指令は、IBMサーバーで、V4R3のAS/400サーバー構成
#  用に、出荷されています。               
#  最初のPass指令は、http://hostname/のフォームの要求に対して、
#  Welcome.html と呼ばれるサンプルファイルをサーブします。     
#  2番目のPass指令は、Welcome.htmlファイルの中で参照されている
#  イメージファイルをサーブされることを可能にしています。    
#                                                 
#  あなた自身のサーバーのホームページをサーブするためには、
#  あなたのwelcome pageの場所を示す最初の指令を変更しなさい。
#                                                           
Pass /  /QIBM/ProdData/HTTP/Public/HTTPSVR/HTML/Welcome.html 
Pass /sample/*  /QIBM/ProdData/HTTP/Public/HTTPSVR/HTML/* 
#  
#                *** WELCOME FILE ***                       
#                                                           
# Syntax:                                                   
#   Welcome                   <file.ext> <ip address>       
#                                                           
# To serve a welcome file from QDLS, add:                   
#   Welcome                   Welcome.htm                   
#                                                           
# To serve hello.html to clients with IP addresses          
# that map to 100.99.* and serve Welcome.html to            
# all others, add:                                          
#   Welcome                   hello.html 100.99.*           
#   Welcome                   Welcome.html                  
#                                                           
# When the HTML is an AS/400 source physical file,          
# the source type of the member must be set to HTML.        
# The Welcome directive refers to the member name           
# and the value specified for source type.                  

#  Welcome                    Welcome.html   
#                *** WELCOME FILE ***                       
#                                                           
# 構文:                                                   
#   Welcome                   <file.ext> <ip address>       
#                                                           
# QDLSからwelcome fileをサーブするためには, 次を追加しなさい:
#   Welcome                   Welcome.htm                   
#                                                           
# hello.htmlを100.99.* にマップするIPアドレスを持つクライアントに
# サーブするため そしてWelcome.htmlを他の全てにサーブするためには
# 次を追加しなさい。                                          
#   Welcome                   hello.html 100.99.*           
#   Welcome                   Welcome.html                  
#                                                           
# HTMLがAS/400のソース物理ファイルの時は,          
# メンバーのソースタイプは、HTMLとセットされなくてはならない 
# Welcome指令は、メンバー名、及びソースタイプに対して指定された値
# を参照します。                  

#  Welcome                    Welcome.html      
#             *** DIRECTORY LISTINGS ***                    
#                                                           
# Syntax:                                                   
#   DirAccess                 <Off ! On ! Selective>        
#   DirShowMaxLen             <Maximum name length>         
#   DirShowMinLen             <Minimum name length>         
#   DirReadme                 <Off ! Top ! Bot>             
#   DirShowData               <Off ! On>                    
#   DirShowSize               <Off ! On>                    
#   DirShowByte               <On  ! Off>                   
#   DirShowOwner              <Off ! On>                    
#   DirShowDescription        <Off ! On>                    
#   DirShowMaxDescrLength     <number>                      

#  DirAccess                  On                            
#  DirShowMaxLen              15                            
#  DirShowMinLen              15                            
#  DirReadme                  Top                           
#  DirShowDate                On                            
#  DirShowSize                On                            
#  DirShowBytes               On                            
#  DirShowOwner               On                            
#  DirShowDescription         On                            
#  DirShowMaxDescrLength      25      
#             *** DIRECTORY 一覧 ***                    
#                                                           
# 構文:                                                   
#   DirAccess                 <Off ! On ! Selective>        
#   DirShowMaxLen             <Maximum name length>         
#   DirShowMinLen             <Minimum name length>         
#   DirReadme                 <Off ! Top ! Bot>             
#   DirShowData               <Off ! On>                    
#   DirShowSize               <Off ! On>                    
#   DirShowByte               <On  ! Off>                   
#   DirShowOwner              <Off ! On>                    
#   DirShowDescription        <Off ! On>                    
#   DirShowMaxDescrLength     <number>                      

#  DirAccess                  On                            
#  DirShowMaxLen              15                            
#  DirShowMinLen              15                            
#  DirReadme                  Top                           
#  DirShowDate                On                            
#  DirShowSize                On                            
#  DirShowBytes               On                            
#  DirShowOwner               On                            
#  DirShowDescription         On                            
#  DirShowMaxDescrLength      25     
#                   *** AddIcon ***                         
#                                                           
# To represent files with a specific MIME content-type      
# or encoding type with icons on directory listings,        
# use AddIcon.  To actually use these, you will need to     
# enable directory listings using DirAccess and             
# add a Pass directive that maps the IconPath to            
# /QIBM/ProdData/HTTP/Protect/HTTPSVR/HTML/ICONS/           
IconPath /QIBM/HTTPSVR/Icons/                               
AddIcon text.gif     text  text/*                           
AddIcon html.gif     html  text/html                        
AddIcon binary.gif   bin   application/*                    
AddIcon compress.gif Z     application/x-compress           
AddIcon compress.gif gzip  application/x-gzip               
AddIcon image.gif    img   image/*                          
AddIcon movie.gif    vid   video/*                          
AddIcon sound.gif    au    audio/*   
#                   *** AddIcon ***                         
#                                                           
# 指定されたMIME content-typeでファイルを表す為、
# 又は、ディレクトリ一覧でアイコンを使って形式をコード化してファイル
# を表す為には、AddIconを使いなさい。 実際にこれらを使うためには, 
# DirAccessでもって、directory一覧を使用可能にする必要があり、
# そしてIconPathを/QIBM/ProdData/HTTP/Protect/HTTPSVR/HTML/ICONS/
# にマップするPass 指令を追加する必要があります           
IconPath /QIBM/HTTPSVR/Icons/                               
AddIcon text.gif     text  text/*                           
AddIcon html.gif     html  text/html                        
AddIcon binary.gif   bin   application/*                    
AddIcon compress.gif Z     application/x-compress           
AddIcon compress.gif gzip  application/x-gzip               
AddIcon image.gif    img   image/*                          
AddIcon movie.gif    vid   video/*                          
AddIcon sound.gif    au    audio/*     
#                   *** AddType ***                         
#                                                           
# To bind files with a particular suffix to a MIME          
# type/subtype, use AddType.  Multiple occurrences          
# are allowed.                                              
AddType .java text/plain binary 1.0                         
AddType .html text/html  8bit   1.0                         
AddType .htm  text/html  8bit   1.0                         
AddType .gif  image/gif  binary     
#                   *** AddType ***                         
#                                                           
# 特別のサフィックスをMIMEのtype/subtypeにバインドするためには
# AddTypeを使いなさい.  複合の繰り返し(指定)が可能です。    
#                                             
AddType .java text/plain binary 1.0                         
AddType .html text/html  8bit   1.0                         
AddType .htm  text/html  8bit   1.0                         
AddType .gif  image/gif  binary  
#                   *** LOGGING ***                         
#                                                           
# To enable access logs to the AS/400 server, use           
# AccessLog.  To enable logs for HTTP server                
# errors, use ErrorLog.  AccessLog and ErrorLog             
# Filenames can be specified in these forms:                
#                                                           
# Access Log file, ACCESSLOG, created in QUSRSYS.           
#  1 - AccessLog ACCESSLOG                                  
# Access Log file, ACCESSLOG, created in                    
#    Integrated File System directory, httplog.             
#  2 - AccessLog /httplog/accesslog                         
#                                                           
# Syntax:                                                   
#   AccessLog                <Access_Log_FileName>          
#   ErrorLog                 <Error_Log_FileName>           
#   LogFormat                <DDS ! COMMON>                 
#   LogTime                  <LocalTime ! GMT>              
#   NoLog                    <ip address>                   

#  AccessLog                 ACCESSLOG                      
#  ErrorLog                  ERRORLOG                       
#  LogFormat                 COMMON                         
#  LogTime                   LocalTime  
#                   *** LOGGING ***                         
#                                                           
# AS/400サーバーに対するアクセスログを可能にするためには       
# AccessLogを使いなさい.  HTTPサーバーのエラーに対するログを    
# 可能にするには ErrorLogを使いなさい. AccessLog と ErrorLogの 
# ファイル名は、このような形式で指定できます。すなわち、
#                                                           
# アクセスログファイル名はACCESSLOG,そしてQUSRSYSに作成される指定
#  1 - AccessLog ACCESSLOG                                  
# アクセスログファイル名はACCESSLOG,そして                  
#    Integrated File System directoryの httplogに作成される指定
#  2 - AccessLog /httplog/accesslog                         
#                                                           
# 構文:                                                   
#   AccessLog                <Access_Log_FileName>          
#   ErrorLog                 <Error_Log_FileName>           
#   LogFormat                <DDS ! COMMON>                 
#   LogTime                  <LocalTime ! GMT>              
#   NoLog                    <ip address>                   

#  AccessLog                 ACCESSLOG                      
#  ErrorLog                  ERRORLOG                       
#  LogFormat                 COMMON                         
#  LogTime                   LocalTime   
#                    *** TIMEOUT ***                        
#                                                           
# InputTimeout - Client to send MIME header request.        
# OutputTimeout - Server to serve a document.               
# ScriptTimeout - Server to finish a CGI program.           
#                                                           
# Syntax:                                                   
#    InputTimeOut            <number> mins                  
#    OutputTimeOut           <number> mins                  
#    ScriptTimeOut           <number> mins                  

#  InputTimeOut              2 mins                         
#  OutputTimeOut             20 mins                        
#  ScriptTimeOut             5 mins                         
#                    *** TIMEOUT ***                        
#                                                           
# InputTimeout - ClientでMIME見出し要求の送信        
# OutputTimeout - Serverでドキュメントをサーブする      
# ScriptTimeout - ServerでCGIプログラムを完了する           
#                                                           
# 構文:                                                   
#    InputTimeOut            <number> mins                  
#    OutputTimeOut           <number> mins                  
#    ScriptTimeOut           <number> mins                  

#  InputTimeOut              2 mins                         
#  OutputTimeOut             20 mins                        
#  ScriptTimeOut             5 mins                         
#                *** END OF DIRECTIVES ***   
#                *** END OF DIRECTIVES *** 

2000-1-30


[ HOME ] [ Upper ]

You are at K's tips-n-kicks of AS/400

 

SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送