#=========================================================================
# APACHE directives to run the sample XLPARSE2 CGI programs
#
# To complete the installation of these directives,
# execute the following command:
# CPYF FROMFILE(XLPARSE2/QATMHINSTC) TOFILE(QUSRSYS/QATMHINSTC)
# FROMMBR(XLPARSE2) TOMBR(XLPARSE2) MBROPT(*REPLACE) CRTFILE(*YES)
#
# To start the HTTP instance for XLPARSE2,
# execute the following command:
# STRTCPSVR SERVER(*HTTP) HTTPSVR(XLPARSE2)
# Then, run command WRKACTJOB SBS(QHTTPSVR) and make sure that more than
# one XLPARSE2 job is running.
# If not, the XLPARSE2 HTTP instance failed being started.
# You should then look in the joblogs for XLPARSE2 jobs and find out
# what the error was.
#
# To display XLPARSE2 documentation,
# type the following in the location line of your browser:
# http://yourAS400IpAddr:8050/xlparse2/html/page1.htm
#
# To run an XLPARSE2 CGI program,
# type the following in the location line of your browser:
# http://yourAS400IpAddr:8050/xlparse2p/xxx.pgm
# where xxx is the name of the CGI program you want to run
#
#=========================================================================
# PART 1
#=========================================================================
ServerRoot /xlparse2/conf
DocumentRoot /xlparse2/conf/hotdocs
Listen 8050
DefaultType text/html
# CGI
CGIConvMode %%EBCDIC/EBCDIC%%
ThreadsPerChild 53
MaxCGIJobs 100
StartCGI 2 QTMHHTP1
Timeout 1800
# PERSISTENT CGI
MaxPersistentCGI 5
CGIRecyclePersist on
PersistentCGITimeout 60
#=========================================================================
# 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 /xlparse2/conf/logs/basic_error_log
#LogFormat "%h %l %u %t \"%r\" %>s %b" common
#CustomLog /xlparse2/conf/logs/access_log Common
#LogMaint /xlparse2/conf/logs/basic_error_log 60 0
#LogMaint /xlparse2/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 - APPLICATIONS DIRECTIVES
#=========================================================================
#---- XLPARSE2 directives
ScriptAliasMatch /xlparse2p/(.*).pgm /qsys.lib/xlparse2.lib/$1.pgm
Alias /tmp/ /tmp/
Alias /xlparse2/ /xlparse2/
AllowOverride None
Options None
order allow,deny
allow from all
AllowOverride None
Options None
order allow,deny
allow from all
AllowOverride None
Options None
order allow,deny
allow from all
AuthType Basic
AuthName XLPARSE2
PasswdFile %%SYSTEM%%
UserID %%CLIENT%%
Require valid-user