#=========================================================================
# APACHE directives to run EPOLICE
#
# To complete the installation of these directives,
# execute the following command:
# CPYF FROMFILE(EPOLICE/QATMHINSTC) TOFILE(QUSRSYS/QATMHINSTC)
# FROMMBR(EPOLICE) TOMBR(EPOLICE) MBROPT(*REPLACE) CRTFILE(*YES)
#
# To start the HTTP instance for EPOLICE,
# execute the following command:
# - STRTCPSVR SERVER(*HTTP) HTTPSVR(EPOLICE)
# - Then, run command WRKACTJOB SBS(QHTTPSVR) JOB(EPOLICE)
# and make sure that more than one EPOLICE job is running.
# If not, the EPOLICE HTTP instance failed being started.
# You should then look in the joblogs for EPOLICE jobs and find out
# what the error was.
# Last, run command
# - EPOLICE/DNSNAME
# and enter the IP address (or the DNS name) of your AS400,
# followed by a colon and the port number, examples
# 192.168.0.2:8020
# www.gigabit.com:8020
#
# To run EPOLICE, type the following in the location line of your browser:
# http://yourAS400IpAddr:8020/epolice/html/start.html
#
#=========================================================================
# PART 1
#=========================================================================
ServerRoot /epolice/conf
DocumentRoot /epolice/conf/hotdocs
Listen 8020
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 /epolice/conf/logs/basic_error_log
#LogFormat "%h %l %u %t \"%r\" %>s %b" common
#CustomLog /epolice/conf/logs/access_log Common
#LogMaint /epolice/conf/logs/basic_error_log 60 0
#LogMaint /epolice/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
#=========================================================================
#---- EPOLICE directives
ScriptAliasMatch /epolicep/(.*).pgm /qsys.lib/epolice.lib/$1.pgm
ScriptAliasMatch /epolicep/(.*).cgi /qsys.lib/epolice.lib/$1.pgm
ScriptAliasMatch /epolicepp/dspchglog0.pgm /qsys.lib/epolice.lib/dspchglog0.pgm
Alias /epolice/ /epolice/
Options None
order allow,deny
allow from all
Options +ExecCGI
CgiConvMode %%EBCDIC/EBCDIC%%
AllowOverride None
Options None
order allow,deny
allow from all
AuthType Basic
AuthName "Display spool file"
PasswdFile %%SYSTEM%%
UserID %%CLIENT%%
Require valid-user