HTTP 構成の処理
システム : COLOSSUS
構成名 . . . . . . . . . . . . . : CONFIG
オプションを入力して,実行キーを押してください。
1= 追加 2= 変更 3= コピー 4= 除去 5= 表示 13= 挿入
OPT 順序番号 項目
00010 # * * * * * * * * * * * * * * * * * * * * * * * * * * *
00020 # IBM HTTP Server for AS/400
00030 # * * * * * * * * * * * * * * * * * * * * * * * * * * *
00040 #
00050 #------------------------------------------------------
00060 # NOTE: Lines starting with a "#" are comments.
00070 # Inline comments are not allowed. For example,
00080 # do not have a "#" on the same line as MAP
00090 # statement.
00100 #------------------------------------------------------
00110 # *** HOSTNAME DIRECTIVES ***
00120 #
00130 # HostName your AS/400 uses when generating references
00140 # to itself. This value will be set to the value set in
00150 # CFGTCP, Option 12, when not specified here.
00160 #
00170 # Syntax:
00180 # HostName <your.full.host.name>
00190 #
00200 #-----------------------------------------------------
00210 # *** PORT DIRECTIVES ***
00220 #
00230 # The default port for HTTP is 80. If you change this
00240 # use a port number greater than 1024.
00250 #
00260 #
00270 # Syntax:
00280 # Port <port number>
00290 #-----------------------------------------------------
00300 # Port 80
00310 #
00320 #-----------------------------------------------------
00330 # *** METHOD DIRECTIVES ***
00340 #
00350 # GET and HEAD are enabled by default. POST will need >
00360 # be enabled for CGI and Net.Data.
00370 #
00380 # Syntax:
00390 # Disable <GET ! HEAD ! POST>
00400 # Enable <GET ! HEAD ! POST>
00410 #------------------------------------------------------
00420 # Enable GET
00430 # Enable HEAD
00440 # Enable POST
00450 #
00460 #------------------------------------------------------
00470 # *** MAPPING DIRECTIVES ***
00480 #
00490 # Mapping to AS/400 IFS library objects requires the
00500 # object to have PUBLIC(*RX) authority.
00510 #
00520 # Mapping to AS/400 QSYS.LIB library objects requires
00530 # the QTMHHTTP user profile to have read access to the
00540 # object or the object to have PUBLIC(*USE) authority.
00550 #
00560 # The <template> is the string used to match the
00570 # incoming request or HTML link (URL). The template is
00580 # mapped to replacement location on the server. Once a
00590 # matching Pass, Exec, Redirect, or Fail template is
00600 # found, all subsequent rules are ignored.
00610 # A match on Map rule changes the request to the
00620 # value in replacement and continues searching for a
00630 # Pass, Exec, Redirect or Fail.
00640 #
00650 # - To serve documents or images, use Pass directives >
00660 # - To run CGI or Net.Data, use Exec
00670 # directives.
00680 # - To send the request to another server, use Redire >
00690 # directives.
00700 # - To prevent access to a particular location that
00710 # a subsequent rule would allow access to, use the
00720 # Fail directive.
00730 # - All requests that do not match a template on the
00740 # Pass, Exec or Redirect will Fail by default and
00750 # generate a "403 - Forbidden by rule" error.
00760 #
00770 # Syntax:
00780 # Map <template> <replacement>
00790 # Pass <template> <replacement>
00800 # Exec <template> <replacement>
00810 # Redirect <template> <replacement>
00820 # Fail <template>
00830 #
00840 # Map /test/* /as400/*
00850 # Pass /as400/* /QDLS/400HOME/*
00860 # Pass /httpfile/* /QSYS.LIB/AS400LIB.LIB/HTML.FILE/*
00870 # Pass /doc/* /QDLS/graphics/*
00880 # Pass /file/* /www/webdata/*
00890 # Fail /QIBM/UserData/private/*
00900 # Pass /QIBM/UserData/*
00910 # Redirect /wsg http://hostname:5061/WSG
00920 #
00930 # HTTP server CGI programs must find an Exec directive >
00940 # This Exec directive refers to a path where the CGI
00950 # program is stored.
00960 #
00970 # Exec /cgi-bin/* /QSYS.LIB/MYCGI.LIB/*
00980 #
00990 # The next two Pass directives are shipped in the IBM >
01000 # Server for AS/400 server configuration in
01010 # V4R3. The first Pass directive serves a sample file
01020 # called Welcome.html for a request of the form
01030 # http://hostname/. The second Pass directive allows
01040 # image files referenced in the Welcome.html file to
01050 # be served.
01060 # To serve your own server home page change the first >
01070 # directive to point to your welcome page location.
01080 #
01090 Pass / /QIBM/ProdData/HTTP/Public/HTTPSVR/HTML/Welcome.html
01100 Pass /sample/* /QIBM/ProdData/HTTP/Public/HTTPSVR/HTML/*
01110 #
01120 #------------------------------------------------------
01130 # *** WELCOME FILE ***
01140 #
01150 # Syntax:
01160 # Welcome <file.ext> <ip address>
01170 #
01180 # To serve a welcome file from QDLS, add:
01190 # Welcome Welcome.htm
01200 #
01210 # To serve hello.html to clients with IP addresses
01220 # that map to 100.99.* and serve Welcome.html to
01230 # all others, add:
01240 # Welcome hello.html 100.99.*
01250 # Welcome Welcome.html
01260 #
01270 # When the HTML is an AS/400 source physical file,
01280 # the source type of the member must be set to HTML.
01290 # The Welcome directive refers to the member name
01300 # and the value specified for source type.
01310 #------------------------------------------------------
01320 # Welcome Welcome.html
01330 #------------------------------------------------------
01340 # *** DIRECTORY LISTINGS ***
01350 #
01360 # Syntax:
01370 # DirAccess <Off ! On ! Selective>
01380 # DirShowMaxLen <Maximum name length>
01390 # DirShowMinLen <Minimum name length>
01400 # DirReadme <Off ! Top ! Bot>
01410 # DirShowData <Off ! On>
01420 # DirShowSize <Off ! On>
01430 # DirShowByte <On ! Off>
01440 # DirShowOwner <Off ! On>
01450 # DirShowDescription <Off ! On>
01460 # DirShowMaxDescrLength <number>
01470 #------------------------------------------------------
01480 # DirAccess On
01490 # DirShowMaxLen 15
01500 # DirShowMinLen 15
01510 # DirReadme Top
01520 # DirShowDate On
01530 # DirShowSize On
01540 # DirShowBytes On
01550 # DirShowOwner On
01560 # DirShowDescription On
01570 # DirShowMaxDescrLength 25
01580 #------------------------------------------------------
01590 # *** AddIcon ***
01600 #
01610 # To represent files with a specific MIME content-type
01620 # or encoding type with icons on directory listings,
01630 # use AddIcon. To actually use these, you will need to
01640 # enable directory listings using DirAccess and
01650 # add a Pass directive that maps the IconPath to
01660 # /QIBM/ProdData/HTTP/Protect/HTTPSVR/HTML/ICONS/
01670 IconPath /QIBM/HTTPSVR/Icons/
01680 AddIcon text.gif text text/*
01690 AddIcon html.gif html text/html
01700 AddIcon binary.gif bin application/*
01710 AddIcon compress.gif Z application/x-compress
01720 AddIcon compress.gif gzip application/x-gzip
01730 AddIcon image.gif img image/*
01740 AddIcon movie.gif vid video/*
01750 AddIcon sound.gif au audio/*
01760 #------------------------------------------------------
01770 # *** AddType ***
01780 #
01790 # To bind files with a particular suffix to a MIME
01800 # type/subtype, use AddType. Multiple occurrences
01810 # are allowed.
01820 AddType .java text/plain binary 1.0
01830 AddType .html text/html 8bit 1.0
01840 AddType .htm text/html 8bit 1.0
01850 AddType .gif image/gif binary
01860 #------------------------------------------------------
01870 # *** LOGGING ***
01880 #
01890 # To enable access logs to the AS/400 server, use
01900 # AccessLog. To enable logs for HTTP server
01910 # errors, use ErrorLog. AccessLog and ErrorLog
01920 # Filenames can be specified in these forms:
01930 #
01940 # Access Log file, ACCESSLOG, created in QUSRSYS.
01950 # 1 - AccessLog ACCESSLOG
01960 # Access Log file, ACCESSLOG, created in
01970 # Integrated File System directory, httplog.
01980 # 2 - AccessLog /httplog/accesslog
01990 #
02000 # Syntax:
02010 # AccessLog <Access_Log_FileName>
02020 # ErrorLog <Error_Log_FileName>
02030 # LogFormat <DDS ! COMMON>
02040 # LogTime <LocalTime ! GMT>
02050 # NoLog <ip address>
02060 #------------------------------------------------------
02070 # AccessLog ACCESSLOG
02080 # ErrorLog ERRORLOG
02090 # LogFormat COMMON
02100 # LogTime LocalTime
02110 #------------------------------------------------------
02120 # *** TIMEOUT ***
02130 #
02140 # InputTimeout - Client to send MIME header request.
02150 # OutputTimeout - Server to serve a document.
02160 # ScriptTimeout - Server to finish a CGI program.
02170 #
02180 # Syntax:
02190 # InputTimeOut <number> mins
02200 # OutputTimeOut <number> mins
02210 # ScriptTimeOut <number> mins
02220 #------------------------------------------------------
02230 # InputTimeOut 2 mins
02240 # OutputTimeOut 20 mins
02250 # ScriptTimeOut 5 mins
02260 #------------------------------------------------------
02270 # *** END OF DIRECTIVES ***
02280 #------------------------------------------------------ |