|
Rob,
* 8* * ScriptAlias /cgi-bin/erros >/QSYS.LIB/E310PRDOBJ.LIB/E310H00000.PGM*
* 9* * ScriptAliasMatch ^/cgi-bin/E31RPP.PGM/(.*) >/QSYS.LIB/E310PRDOBJ.LIB/$1.PGM*
Try this (from a working system - I substituted your lib name)
ScriptAliasMatch ^/cgi-bin/(.*)\.pgm$ /QSYS.LIB/
E310PRDOBJ.LIB /$1.pgm
Jim Franz
-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Rob Dixon
Sent: Sunday, December 02, 2018 2:17 PM
To: Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
Subject: Re: [WEB400] Apache - persistent CGI problem: ZSRV_MSG0109
Jim,
Many thanks for this. I don't think that that is the problem as I use
exactly the same programs and program structure in 5250 mode and there are
no problems. In any event, if this were the problem, I think that it would
be reported differently.
Any other suggestions please?
Rob Dixon
On Sun, 2 Dec 2018 at 13:53, Jim Oberholtzer <midrangel@xxxxxxxxxxxxxxxxx>
wrote:
A purely wild guess, but is the system trying to call that programpersistent CGI pages.
recursively? Where at V5R1 it was OK in that circumstance but now
it's protected? Maybe the new Apache is calling it recursively and
the old one was not. I would look in the history log to see if you
get any insight there. I'm sure you've already looked in the job logs
of the http server, and the http error logs.
--
Jim Oberholtzer
Agile Technology Architects
-----Original Message-----
From: WEB400 <web400-bounces@xxxxxxxxxxxx> On Behalf Of Rob Dixon
Sent: Sunday, December 02, 2018 5:24 AM
To: Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
Subject: [WEB400] Apache - persistent CGI problem: ZSRV_MSG0109
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
The first screen is displayed correctly with data retrieved from thein the error log.
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
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>*
--
Rob Dixon
www.erros.co.uk
www.boarstall.com
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
mailing list To post a message email: WEB400@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/web400.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
mailing list To post a message email: WEB400@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/web400.
--
Rob Dixon
www.erros.co.uk
www.boarstall.com
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email: WEB400@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/web400.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
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.