#=========================================================================
# HTTP Instance for XLSCGI
#
# To enable this HTTP instance execute the following command:
# CPYF FROMFILE(XLSCGI/QATMHINSTC) TOFILE(QUSRSYS/QATMHINSTC)
# FROMMBR(XLSCGI) TOMBR(XLSCGI) MBROPT(*REPLACE) CRTFILE(*YES)
#
# To start the HTTP instance for XLSCGI, execute the following command:
# STRTCPSVR SERVER(*HTTP) HTTPSVR(XLSCGI)
# Then, run command WRKACTJOB SBS(QHTTPSVR) and make sure that more than
# one XLSCGI job is running.
# If not, the XLSCGI HTTP instance failed being started.
# You should then look in the joblogs for XLSCGI jobs and find out
# what the error was.
#
# To run XLSCGI, type the following in the location line of your browser:
# http://yourAS400IpAddr:8030
#
#=========================================================================
# PART 1
#=========================================================================
ServerRoot /xlscgi/conf
DocumentRoot /xlscgi/conf/hotdocs
Listen 8030
DefaultType text/html
# CGI
CGIConvMode %%EBCDIC/EBCDIC%%
ThreadsPerChild 53
MaxCGIJobs 100
StartCGI 2 QTMHHTP1
Timeout 1800
# PERFORMANCE
DynamicCache on
CacheLocalSizeLimit 500000
#=========================================================================
# 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 /xlscgi/conf/logs/basic_error_log
#LogFormat "%h %l %u %t \"%r\" %>s %b" common
#CustomLog /xlscgi/conf/logs/access_log Common
#LogMaint /xlscgi/conf/logs/basic_error_log 60 0
#LogMaint /xlscgi/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 - DIRECTIVES TO RUN THE XLSCGI UTILITY
#=========================================================================
# -The following URL's are available:
# XLSCGI Manual http://...:8030
# XLSCGI manual http://...:8030/xlscgi/html/page1.html
# sample CGI without spreadsheet http://...:8030/xlscgip/samplecgi1.pgm
# sample CGI with spreadsheet http://...:8030/xlscgip/samplecgi2.pgm
# spreadsheet modeling http://...:8030/xlscgip/xlsmdl.pgm
#=========================================================================
CgiInitialUrl /qsys.lib/xlscgi.lib/xlsmdl.pgm QTMHHTP1
AliasMatch ^/$ /xlscgi/html/page1.htm
AliasMatch ^/css/(.*)$ /xlscgi/css/$1
AliasMatch ^/graphics/(.*)$ /xlscgi/graphics/$1
AliasMatch ^/figures/(.*)$ /xlscgi/figures/$1
AliasMatch ^/conf/(.*)$ /xlscgi/conf/$1
AliasMatch ^/page(.*)$ /xlscgi/html/page$1
AliasMatch ^/samp(.*)$ /xlscgi/html/samp$1
ScriptAliasMatch /xlscgip/(.*) /qsys.lib/xlscgi.lib/$1
Alias /xlscgi/ /xlscgi/
AllowOverride None
order allow,deny
allow from all
CGIConvMode %%EBCDIC/EBCDIC%%
Options None
order allow,deny
allow from all
AuthType Basic
AuthName "XLSCGI reserved tools"
PasswdFile %%SYSTEM%%
UserID %%CLIENT%%
Require valid-user
ForceType application/vnd.ms-excel