#=========================================================================
# 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 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 /www/webigea
DocumentRoot /www/webigea/docs
Listen *:8014
DefaultType text/html
# CGI
CGIConvMode %%EBCDIC/EBCDIC%%
ThreadsPerChild 53
MaxCGIJobs 100
StartCGI 2 QTMHHTP1
Timeout 1800
DefaultFsCCSID 280
DefaultNetCCSID 819
# PERSISTENT CGI
MaxPersistentCGI 50
CGIRecyclePersist on
PersistentCGITimeout 60
# PERFORMANCE
DynamicCache on
CacheLocalSizeLimit 25000
FRCAEnableFileCache On
FRCACacheLocalFileRunTime /www/webigea/*.gif
#=========================================================================
# PART 2
#=========================================================================
Options +ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch +Includes -Indexes -MultiViews
ServerName
www.igeayarn.it:8014AlwaysDirectoryIndex off
DirectoryIndex index.html welcome.html home.html
# The following directives regard the HTTP instance logs
# They are commented out. Uncomment them to have the logs generated
ErrorLog /www/webigea/logs/basic_error_log
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog /www/webigea/logs/access_log Common
LogMaint /www/webigea/logs/basic_error_log 60 0
LogMaint /www/webigea/logs/access_log 30 0
LogLength 512000000
FileETag +INode +MTime +Size
#
SetEnvIf User-Agent "Mozilla/2" nokeepalive
SetEnvIf User-Agent "JDK/1\.0" force-response-1.0
SetEnvIf User-Agent "Java/1\.0" force-response-1.0
SetEnvIf User-Agent "RealPlayer 4\.0" force-response-1.0
SetEnvIf User-Agent "MSIE 4\.0b2;" nokeepalive
AddOutputFilter INCLUDES .shtml
SetEnv QIBM_CGI_LIBRARY_LIST IGEA00;ACGWDATV3;ACG_OBJV3;FRANCESCO;UTILITY;LIBHTTP;TAATOOL
<Directory /www/webigea/docs>
Order Allow,Deny
#allow from
192.168.0.0/24#allow from
192.168.1.0/24#allow from
192.168.2.0/24#allow from
192.168.3.0/24#allow from
192.168.4.0/24#allow from
192.168.5.0/24#allow from
192.168.6.0/24#deny from all
allow from all
require valid-user
passwdfile %%SYSTEM%%
userid %%CLIENT%%
authtype basic
authname "Igea Intranet Access"
</Directory>
#=========================================================================
# PART 3
#=========================================================================
#---- 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 /cgidev2oit/(.*)\.htm /QSYS.LIB/CGIDEV2.LIB/DEMOHTMLIT.FILE/$1.mbr
#Alias /cgidev2/start /qsys.lib/cgidev2.lib/demohtml.file/demoframe.mbr
Alias /cgi-doc/ /www/webigea/docs
ScriptAlias /cgi-bin/ /QSYS.LIB/WIGEAPGM.LIB/
#Alias /cgidevf/ /cgidev/
#Alias /cgidevexthtml/ /cgidevexthtml/
#Alias /cgi-bin/ /qsys.lib/WIGEAPGM.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/
#=========================================================================
# PART 3
#=========================================================================
#---- CGIDEV2 directives
<Directory /www/webigea/>
order allow,deny
</Directory>
#<Directory /cgidevexthtml>
#AllowOverride None
#Options None
#order allow,deny
#allow from all
#</Directory>
<Directory /QSYS.LIB/WIGEAPGM.LIB>
Order Allow,Deny
#allow from
192.168.0.0/24#allow from
192.168.1.0/24#allow from
192.168.2.0/24#allow from
192.168.3.0/24#allow from
192.168.4.0/24#allow from
192.168.5.0/24#allow from
192.168.6.0/24#deny from all
allow from all
require valid-user
passwdfile %%SYSTEM%%
userid %%CLIENT%%
authtype basic
authname "Igea Intranet Access"
</Directory>
Sono nel caos piu' completo.....