#=========================================================================
# This is the HTTP directives configuration file for
# HTTP instance CGIWRKDBF.
#
# To create the HTTP instance CGIWRKDBF, execute the following command:
# CPYF FROMFILE(CGIWRKDBF/QATMHINSTC) TOFILE(QUSRSYS/QATMHINSTC)
# FROMMBR(CGIWRKDBF) TOMBR(CGIWRKDBF) MBROPT(*REPLACE) CRTFILE(*YES)
#
# To start the HTTP instance CGIWRKDBF,
# execute the following command:
# STRTCPSVR SERVER(*HTTP) HTTPSVR(CGIWRKDBF)
# Then, run command WRKACTJOB SBS(QHTTPSVR) and make sure that more than
# one CGIWRKDBF job is running.
# If not, the CGIWRKDBF HTTP instance failed being started.
# You should then look in the joblogs for CGIWRKDBF jobs and find out
# what the error was.
#
# To run CGIWRKDBF, type the following in the location line of your browser:
# http://yourAS400IpAddr:8015/wrkdbf
#
#=========================================================================
# PART 1
#=========================================================================
ServerRoot /cgiwrkdbf/conf
DocumentRoot /cgiwrkdbf/conf/htdocs
Listen 8015
DefaultType text/html
# CGI
CGIConvMode %%EBCDIC/EBCDIC%%
ThreadsPerChild 53
MaxCGIJobs 100
StartCGI 2 QTMHHTP1
Timeout 1800
#DefaultFsCCSID 37
DefaultNetCCSID 819
#=========================================================================
# PART 2
#=========================================================================
Options +ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch +Includes -MultiViews -Indexes
IdentityCheck Off
AlwaysDirectoryIndex off
# The following directives regard the HTTP instance logs
# They are commented out. Uncomment them to have the logs generated
#ErrorLog /cgiwrkdbf/conf/logs/basic_error_log
#LogFormat "%h %l %u %t \"%r\" %>s %b" common
#CustomLog /cgiwrkdbf/conf/logs/access_log Common
#LogMaint /cgiwrkdbf/conf/logs/basic_error_log 60 0
#LogMaint /cgiwrkdbf/conf/logs/access_log 30 0
#LogLength 512000000
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
Require all granted
#=========================================================================
# PART 3
#=========================================================================
#---- CGIWRKDFB directives
ScriptAliasMatch /cgiwrkdbfp/(.*) /qsys.lib/cgiwrkdbf.lib/$1
ScriptAliasMatch ^/wrkdbf$ /qsys.lib/cgiwrkdbf.lib/wrkdbf.pgm
Alias /cgiwrkdbf/ /cgiwrkdbf/
Options None
Require all granted
AllowOverride None
Require all granted
Options +ExecCGI
CGIConvMode %%EBCDIC/EBCDIC%%
# The following group of directives is for user validation vs the system user profiles
AuthType Basic
AuthName "WRKDBF"
PasswdFile %%SYSTEM%%
UserID %%CLIENT%%
Require valid-user