Rob,
Why are you wildcarding the program name. It is a very risky move and opening your system wide open to hackers.

Thanks
John Slanina


On 12/11/18, 11:16 AM, "WEB400 on behalf of Buck Calabro" <web400-bounces@xxxxxxxxxxxx on behalf of kc2hiz@xxxxxxxxx> wrote:

On 12/11/2018 4:45 AM, Rob Dixon wrote:

> Many thanks. The URI that is displayed on the second screen with error 404
> Not Found is QSYS.LIB/E310PRDOBJ.LIB/E31RPP.PGM/081780681744383/ - with a /
> at the end. Under V5R1 using original HTTP server, this is what I also get
> and that has worked for many years. 081780 is the job number and 681744383
> is the remainder of the session ID. I imagine, perhaps naively, that
> anything that works with the original HTTP server will also work with
> Apache.
I've never done persistent CGI, so I may be way off base.

> Apache should not be looking for a program with a numeric only name
> as they are not valid in i5/OS

Apache looks for what you tell it to look for. Given:

ScriptAliasMatch ^/cgi-bin/(.*) /$1

Apache will consider all of the text after '/cgi-bin/' to be the program
that is called. Thus the error about not being able to find
'QSYS.LIB/E310PRDOBJ.LIB/E31RPP.PGM/081780681744383/' The desired
program string ought to be 'QSYS.LIB/E310PRDOBJ.LIB/E31RPP.PGM', I think.

I believe that you need to strip the program name string from the
'parameter' digits. Perhaps something like

ScriptAliasMatch ^/cgi-bin/(.*.PGM)(.*) /$1

--
--buck

http://wiki.midrange.com
Your updates make it better!

--
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 thread ...

Replies:

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.