#=========================================================================
# APACHE directives to run HSSFCGI
#
# To complete the installation of these directives,
# execute the following command:
# CPYF FROMFILE(HSSFCGI/QATMHINSTC) TOFILE(QUSRSYS/QATMHINSTC)
# FROMMBR(HSSFCGI) TOMBR(HSSFCGI) MBROPT(*REPLACE) CRTFILE(*YES)
#
# To start the HTTP instance for HSSFCGI,
# execute the following command:
# STRTCPSVR SERVER(*HTTP) HTTPSVR(HSSFCGI)
# Then, run command WRKACTJOB SBS(QHTTPSVR) and make sure that more than
# one HSSFCGI job is running.
# If not, the HSSFCGI HTTP instance failed being started.
# You should then look in the joblogs for HSSFCGI jobs and find out
# what the error was.
#
# These directives allow to:
# - display the HSSFCGI manual
# - run the CGI demos
# - run command TABLEXLS from the browser
#
# To display the HSSFCGI manual:
# http://yourAS400IpAddr:8016/hssfcgi/html/page1.htm
#
# To run the XLSGEN GUB CGI demo:
# http://yourAS400IpAddr:8016/hssfcgip/gub.pgm
# To run the XLSGEN FAMACC CGI demo:
# http://yourAS400IpAddr:8016/hssfcgip/famacc.pgm
#
# To run the TABLEXLS command:
# http://yourAS400IpAddr:8016/tablexls
#
#=========================================================================
# PART 1
#=========================================================================
ServerRoot /hssfcgi/conf
DocumentRoot /hssfcgi/conf/htdocs
Listen 8016
DefaultType text/html
# CGI
CGIConvMode %%EBCDIC/EBCDIC%%
ThreadsPerChild 53
MaxCGIJobs 100
StartCGI 2 QTMHHTP1
Timeout 1800
# DefaultFsCCSID 285
#=========================================================================
# 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 /hssfcgi/conf/logs/basic_error_log
#LogFormat "%h %l %u %t \"%r\" %>s %b" common
#CustomLog /hssfcgi/conf/logs/access_log Common
#LogMaint /hssfcgi/conf/logs/basic_error_log 60 0
#LogMaint /hssfcgi/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
Order Allow,Deny
Allow From all
#=========================================================================
# PART 3
#=========================================================================
#---- HSSFCGI directives
ScriptAliasMatch /hssfcgip/(.*) /qsys.lib/hssfcgi.lib/$1
ScriptAliasMatch ^/tablexls$ /qsys.lib/hssfcgi.lib/webtablexl.pgm
Alias /hssfcgi/ /hssfcgi/
Options None
order allow,deny
allow from all
AllowOverride None
order allow,deny
allow from all
Options -ExecCGI
CGIConvMode %%EBCDIC/EBCDIC%%
# The following group of directives is for user validation vs the system user profiles
AuthType Basic
AuthName "HSSFCGI reserved tools"
PasswdFile %%SYSTEM%%
UserID %%CLIENT%%
Require valid-user