-
Funktionieren HTTP Konfig für V5R2 (IBM HTTP Server)
Die folgende Konfig funktioniert auf einer Maschine mit V5R2 und dem IBM (nicht Apache!!) HTTP-Server zusammen mit Statischen Seiten und auch IBM NET.DATA,
ob das auch mit V4R3 funkt weiß ich nicht genau, müßte aber eigentlich schon - wer hat schon noch V4R3 ... das ist ja 100 Jahre alt ;-))
# * * * * * * * * * * * * * * * * * * * * * * * * * * *
# 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.
#------------------------------------------------------
# *** 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 myhost.mydomain.com
#-----------------------------------------------------
# *** 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
#
#-----------------------------------------------------
# *** METHOD DIRECTIVES ***
#
# GET and HEAD are enabled by default. POST will need to
# be enabled for CGI and Net.Data.
#
# Syntax:
# 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 Redirect
# 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 HTTP
# 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 pass
# 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/*
map /cgi/* /QSYS.LIB/XXXWWWPRD.LIB/DB2WWW.PGM/*
map /CGI/* /QSYS.LIB/XXXWWWPRD.LIB/DB2WWW.PGM/*
Exec /QSYS.LIB/XXXWWWPRD.LIB/*
Pass / /XXX/Homepage/index.htm
Pass /* /XXX/Homepage/*
#
#------------------------------------------------------
# *** WELCOME FILE ***
#
# Syntax:
Welcome intranet.htm 192.168.65.*
Welcome index.htm
#
# 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 intranet.htm 192.168.65.*
# 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
#------------------------------------------------------
# *** 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
#------------------------------------------------------
# *** 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/*
#------------------------------------------------------
# *** 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
#------------------------------------------------------
# *** 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 /KID/Homepage/log/accesslog 20000
ErrorLog /KID/Homepage/log/errorlog 9999 *DFT *DFT
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
#------------------------------------------------------
# *** END OF DIRECTIVES ***
#------------------------------------------------------
BindSpecific Off
UserID %%SERVER%%
DNS-Lookup On
RuleCaseSense Off
Imbeds On SSIOnly
AlwaysWelcome On
DirAccess Off
ErrorLogArchive None
ErrorLogExpire 0
ErrorLogSizeLimit 0
AccessLogArchive None
AccessLogExpire 0
AccessLogSizeLimit 0
Similar Threads
-
By troepen in forum IBM i Hauptforum
Antworten: 3
Letzter Beitrag: 10-05-06, 21:59
-
By Techniker in forum IBM i Hauptforum
Antworten: 3
Letzter Beitrag: 26-04-06, 15:20
-
By BeckerOl in forum IBM i Hauptforum
Antworten: 0
Letzter Beitrag: 28-04-05, 07:19
-
By Winni in forum IBM i Hauptforum
Antworten: 0
Letzter Beitrag: 29-08-02, 10:46
-
By Joe in forum IBM i Hauptforum
Antworten: 0
Letzter Beitrag: 08-08-02, 22:22
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- You may not post attachments
- You may not edit your posts
-
Foren-Regeln
|
Erweiterte Foren Suche
Google Foren Suche
Forum & Artikel Update eMail
AS/400 / IBM i
Server Expert Gruppen
Unternehmens IT
|
Kategorien online Artikel
- Big Data, Analytics, BI, MIS
- Cloud, Social Media, Devices
- DMS, Archivierung, Druck
- ERP + Add-ons, Business Software
- Hochverfügbarkeit
- Human Resources, Personal
- IBM Announcements
- IT-Karikaturen
- Leitartikel
- Load`n`go
- Messen, Veranstaltungen
- NEWSolutions Dossiers
- Programmierung
- Security
- Software Development + Change Mgmt.
- Solutions & Provider
- Speicher – Storage
- Strategische Berichte
- Systemmanagement
- Tools, Hot-Tips
Auf dem Laufenden bleiben
|
Bookmarks