× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I have been running a persistent CGI application on a V5R1 system for ten
or more years using the IBM original HTTP server. I have now transferred it
to a V5R3 system and must run it under Apache. My static pages work
correctly but I am having problems with my dynamic persistent CGI pages.
The first screen is displayed correctly with data retrieved from the
database, so I assume that there are no security problems, yet, when I
click on Enter to access the second screen, I get

ZSRV_MSG0109: /QSYS.LIB/E310PRDOBJ.LIB/081302393085252 is not a cgi
program: /QSYS.LIB/E310PRDOBJ.LIB/081302393085252, referer:
http://192.168.2.70/cgi-bin/erros

The URL in the error message above is wrong because it omits the name of
the CGI program, yet the correct URL, with the CGI program name -

http://192.168.2.70/cgi-bn/E31RPP.PGM/081302393085252/ is displayed on the
error screen with the 404 Not Found error message and “The script request
is not valid. The script is not executable.“

The CGI program is E31RPP. This also was used for the first screen, having
been called by the initial program. It successfully called the database
handler that retrieved data for that first screen.

I am at a loss to understand how Apache puts the correct URL on the error
screen yet omits the name of the CGI program internally.I have switched on
CGIDEBUG. This records the valid first screen but nothing further is added
when I make the second request. The problem is logged in the error log.

I assume that my Apache configuration must be wrong, and, in particular,
the ScriptAliasMatch directive, but I am including the whole configuration
code below as there might be another problem.

I would really appreciate some help please. I have tried many versions of
my configuration but without success.

Many thanks

*ERROS2* <http://192.168.2.70:2001/ERROS2> > Display Configuration File

Display Configuration File
*HTTP server:* ERROS2
*Selected file:* /erroshome/erros2/conf/httpd.conf

* 1* * # Configuration originally created by Create HTTP Server wizard
on Sun Nov 18 11:26:49 GMT 2018*
* 2* * Listen *:80*
* 3* * DocumentRoot /erroshome*
* 4* * DirectoryIndex Home_1.html*
* 5*
* 6*
* 7*
* 8* * ScriptAlias /cgi-bin/erros
/QSYS.LIB/E310PRDOBJ.LIB/E310H00000.PGM*
* 9* * ScriptAliasMatch ^/cgi-bin/E31RPP.PGM/(.*)
/QSYS.LIB/E310PRDOBJ.LIB/$1.PGM*
* 10*
* 11* * # Options +ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch
+Includes -Indexes*
* 12* * CgiConvMode %%EBCDIC/EBCDIC%%*
* 13*
* 14* * LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined*
* 15* * LogFormat "%{Cookie}n \"%r\" %t" cookie*
* 16* * LogFormat "%{User-agent}i" agent*
* 17* * LogFormat "%{Referer}i -> %U" referer*
* 18* * LogFormat "%h %l %u %t \"%r\" %>s %b" common*
* 19* * CustomLog logs/access_log combined*
* 20* * LogMaint logs/access_log 7 0*
* 21* * LogLevel Debug*
* 22* * ScriptLog logs/script-log*
* 23*
* 24* * # SetEnvIf "User-Agent" "Mozilla/2" nokeepalive*
* 25* * SetEnvIf "User-Agent" "JDK/1\.0" force-response-1.0*
* 26* * SetEnvIf "User-Agent" "Java/1\.0" force-response-1.0*
* 27* * SetEnvIf "User-Agent" "RealPlayer 4\.0" force-response-1.0*
* 28* * SetEnvIf "User-Agent" "MSIE 4\.0b2;" nokeepalive*
* 29* * # SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.0*
* 30*
* 31* * PersistentCGITimeout 3600*
* 32* * MaxPersistentCGITimeout 3600*
* 33* * CGIRecyclePersist On*
* 34* * CGIMultiThreaded On*
* 35* * KeepAliveTimeout 3600*
* 36*
* 37* * DefaultLanguage en*
* 38* * AddOutputFilter INCLUDES .shtml*
* 39* * # IndexOptions -IconHeight -IconWidth -SuppressHTMLPreamble
+SuppressIcon*
* 40* * <Directory />*
* 41* * Order Deny,Allow*
* 42* * Deny From all*
* 43* *</Directory>*
* 44*
* 45* * <Directory /erroshome>*
* 46* * Order Allow,Deny*
* 47* * Allow From all*
* 48* *</Directory>*
* 49*
* 50* * <Directory /erroshome/cgi-bin>*
* 51* * Order Allow,Deny*
* 52* * Allow From all*
* 53* *</Directory>*
* 54*
* 55* * <Directory /QSYS.LIB/E310PRDOBJ.LIB>*
* 56* * AuthName "Protected - iSeries Username required"*
* 57* * AuthType Basic*
* 58* * PasswdFile %%SYSTEM%%*
* 59* * UserID %%CLIENT%%*
* 60* * Require valid-user*
* 61* * Options +ExecCGI*
* 62* * SetHandler cgi-script*
* 63* * Order allow,deny*
* 64* * Allow from all*
* 65* *</Directory>*
* 66*
* 67* * <Directory /cgi-bin/E31RPP.PGM/(.*)>*
* 68* * Options +ExecCGI*
* 69* * SetHandler cgi-script*
* 70* * Order Allow,Deny*
* 71* * Allow from all*
* 72* *</Directory>*






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.