#=========================================================================
# APACHE directives to run CGIDEV2
#
# To complete the installation of these directives,
# execute the following command:
# CPYF FROMFILE(CGIDEV2/QATMHINSTC) TOFILE(QUSRSYS/QATMHINSTC)
# FROMMBR(CGIDEV2APA) TOMBR(CGIDEV2APA) MBROPT(*REPLACE) CRTFILE(*YES)
#
# To start the HTTP instance for CGIDEV2,
# execute the following command:
# STRTCPSVR SERVER(*HTTP) HTTPSVR(CGIDEV2APA)
# Then, run command WRKACTJOB SBS(QHTTPSVR) and make sure that more than
# one CGIDEV2APA job is running.
# If not, the CGIDEV2APA HTTP instance failed being started.
# You should then look in the joblogs for CGIDEV2APA jobs and find out
# what the error was.
#
# To run CGIDEV2, type the following in the location line of your browser:
# http://yourAS400IpAddr:8014/cgidev2/start
#
#=========================================================================
# PART 1
#=========================================================================
ServerRoot /cgidev/conf
DocumentRoot /cgidev/conf/hotdocs
Listen 8014
#Listen 1221
DefaultType text/html
# CGI
CGIConvMode %%EBCDIC/EBCDIC%%
ThreadsPerChild 53
MaxCGIJobs 100
StartCGI 2 QTMHHTP1
Timeout 1800
# PERSISTENT CGI
MaxPersistentCGI 5
CGIRecyclePersist on
PersistentCGITimeout 60
# PERFORMANCE
DynamicCache on
CacheLocalSizeLimit 500000
FRCAEnableFileCache On
#FRCACacheLocalFileRunTime /cgidev/*.gif
# To force the CCSID of the HTTP instance jobs to a given CCSID (example: 5035)
# use the following directive (currently commented)
# DefaultFsCCSID 5035
#=========================================================================
# PART 2
#=========================================================================
Options +ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch +Includes -MultiViews -Indexes
IdentityCheck Off
AlwaysDirectoryIndex off
DirectoryIndex index.html welcome.html
# The following directives regard the HTTP instance logs
# They are commented out. Uncomment them to have the logs generated
#ErrorLog /cgidev/conf/logs/basic_error_log
#LogFormat "%h %l %u %t \"%r\" %>s %b" common
#CustomLog /cgidev/conf/logs/access_log Common
#LogMaint /cgidev/conf/logs/basic_error_log 60 0
#LogMaint /cgidev/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 - APPLICATIONS DIRECTIVES
#=========================================================================
#---- CGIDEV2 directives
AliasMatch /cgidev2h/(.*)\.htm /QSYS.LIB/CGIDEV2.LIB/HTMLSRC.FILE/$1.mbr
AliasMatch /cgidev2o/(.*)\.htm /QSYS.LIB/CGIDEV2.LIB/DEMOHTML.FILE/$1.mbr
AliasMatch /cgidev2o/(.*)\.mbr /QSYS.LIB/CGIDEV2.LIB/DEMOHTML.FILE/$1.mbr
AliasMatch /cgidev2oit/(.*)\.htm /QSYS.LIB/CGIDEV2.LIB/DEMOHTMLIT.FILE/$1.mbr
AliasMatch /cgidev2oit/(.*)\.mbr /QSYS.LIB/CGIDEV2.LIB/DEMOHTMLIT.FILE/$1.mbr
Alias /cgidev2/start /qsys.lib/cgidev2.lib/demohtml.file/demoframe.mbr
Alias /cgidev/ /cgidev/
Alias /cgidevf/ /cgidev/
Alias /cgidevexthtml/ /cgidevexthtml/
Alias /cgidev2/ /qsys.lib/cgidev2.lib/
Alias /cgidev2h/ /QSYS.LIB/CGIDEV2.LIB/HTMLSRC.FILE/
Alias /cgidev2o/ /QSYS.LIB/CGIDEV2.LIB/DEMOHTML.FILE/
Alias /cgidev2oit/ /QSYS.LIB/CGIDEV2.LIB/DEMOHTMLIT.FILE/
Alias /tmp/ /tmp/
ScriptAliasMatch /cgidev2p/(.*).cgi /qsys.lib/cgidev2.lib/$1.pgm
ScriptAliasMatch /cgidev2p/(.*) /qsys.lib/cgidev2.lib/$1
ScriptAliasMatch /cgidev2pp/(.*) /qsys.lib/cgidev2.lib/$1
AllowOverride None
Options None
Require all granted
AllowOverride None
Options None
Require all granted
AllowOverride None
Options None
Require all granted
AllowOverride None
Options None
Require all granted
#---- CENTAUR2 directives
AliasMatch /centaur2h/(.*)\.htm /QSYS.LIB/CENTAUR2.LIB/HTMLSRC.FILE/$1.mbr
Alias /centaur2/start /qsys.lib/centaur2.lib/htmlsrc.file/start.mbr
Alias /centaurdir/ /centaurdir/
ScriptAliasMatch /centaur2p(.*).pgm /qsys.lib/centaur2.lib$1.pgm
ScriptAliasMatch /centaur2p(.*).cgi /qsys.lib/centaur2.lib$1.pgm
AllowOverride None
Options None
Require all granted
AllowOverride None
Options None
Require all granted