#========================================================================= # APACHE directives to run EZ4WEBSERV # # To complete the installation of these directives, # execute the following command: # CPYF FROMFILE(EZ4WEBSERV/QATMHINSTC) TOFILE(QUSRSYS/QATMHINSTC) # FROMMBR(EZ4WEBSERV) TOMBR(EZ4WEBSERV) MBROPT(*REPLACE) CRTFILE(*YES) # # To start the HTTP instance for EZ4WEBSERV, # execute the following command: # STRTCPSVR SERVER(*HTTP) HTTPSVR(EZ4WEBSERV) # Then, run command WRKACTJOB SBS(QHTTPSVR) and make sure that more than # one EZ4WEBSERV job is running. # If not, the EZ4WEBSERV HTTP instance failed being started. # You should then look in the joblogs for EZ4WEBSERV jobs and find out # what the error was. # # To send a request to EZ4WEBSERV, # http://yourAS400IpAddr:8018/... # (replace ... with your request) # #========================================================================= # PART 1 #========================================================================= ServerRoot /ez4webserv/conf DocumentRoot /ez4webserv/conf/htdocs Listen 8018 DefaultType text/html # CGI CGIConvMode %%EBCDIC/EBCDIC%% ThreadsPerChild 53 MaxCGIJobs 100 StartCGI 2 QTMHHTP1 Timeout 1800 # PERFORMANCE DynamicCache on CacheLocalSizeLimit 500000 FRCAEnableFileCache On # To force the CCSID of the HTTP instance jobs to a given CCSID (example: 5035) # use the following directive (currently commented) # DefaultFsCCSID 5035 DefaultNetCCSID 1208 #========================================================================= # 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 /ez4webserv/conf/logs/basic_error_log #LogFormat "%h %l %u %t \"%r\" %>s %b" common #CustomLog /ez4webserv/conf/logs/access_log Common #LogMaint /ez4webserv/conf/logs/basic_error_log 60 0 #LogMaint /ez4webserv/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 #========================================================================= ScriptAliasMatch /ez4webservp/(.*).pgm /qsys.lib/ez4webserv.lib/$1.pgm ScriptAliasMatch /ez4web/(.*) /qsys.lib/EZ4WEBSERV.lib/service.pgm Alias /ez4webserv/ /ez4webserv/ Alias /tmp/ /tmp/ AllowOverride None Options +ExecCGI order allow,deny allow from all AllowOverride None Options None order allow,deny allow from all