Reg: Apache HTTP Server with CGI Scripts
Suren K <[email protected]> Thu, 20 Jun 2024 22:41:09 -0400
| Newsgroups | gmane.comp.systems.as400.web |
|---|---|
| Message-ID | <CAHZ5qtjQ1=CCiWDNy8KPBhHb+6uMQOyneVDMtRvOJ0ajbXz_VQ@mail.gmail.com> |
Hi All,
I have deployed web services using IBMi HTTP Server and added CGI scripts
to directly call the RPGLE program based on URL.
I am noticing after every restart the first transaction takes more time to
process (almost 10 to 15 seconds), then all other transactions are
processed faster (in milliseconds).
Anything I need to tune in to the HTTP Server to make the first transaction
faster?
HTTP Configuration file as below
# Configuration originally created by Create HTTP Server wizard on Thu Jun
20 05:28:43 PDT 2024
Listen *:38080
DocumentRoot /www/testserv/htdocs
TraceEnable Off
Options -FollowSymLinks
LogFormat "%h %T %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%{Cookie}n \"%r\" %t" cookie
LogFormat "%{User-agent}i" agent
LogFormat "%{Referer}i -> %U" referer
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog logs/access_log combined
LogMaint logs/access_log 7 0
LogMaint logs/error_log 7 0
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
SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.0
ServerUserId TESTUSER
HTTPStartJobDesc TESTLIB/TESTJOBD
SetEnv QIBM_CGI_CHANGE_CURDIR N
SetEnv QIBM_CGI_CHANGE_CURLIB N
<Directory />
Require all denied
</Directory>
<Directory /www/testserv/htdocs>
Require all granted
</Directory>
<Directory /qsys.lib/testlib.lib>
Require all granted
</Directory>
ScriptAlias /CGI/1.0/students /qsys.lib/ testlib.lib/TESTPGM1.pgm
ScriptAliasMatch /CGI/1.0/getAddress/(.*) /qsys.lib/testlib.lib/TESTPGM3.pgm
ScriptAlias /CGI/1.0/enroll /qsys.lib/testlib.lib/TESTPGM2.pgm
#HTTPSubsystemDesc QHTTPSVR/QHTTPSVR
#HTTPStartJobDesc QHTTPSVR/QZHBHTTP
#HTTPStartJobQueue *JOBD
#HTTPRoutingData *JOBD
Any suggestions will be very much appreciated.
Regards,
Suren
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.