Don,

I think you can write a wrapper CL to accomplish what you want. The way you have it configured now, it is always going to call your program in library CGIBIN. The library list environment variable isn't going to have any effect on the call because the server is using a fully qualified name.

If you write a CL wrapper, the CL can call the program without using the fully qualified name and I think that will do what you want.

Another option is to create additional ScriptAliasMatch's for specific CGI programs. If you do that, make sure they are located before the existing one in httpd.conf.

Matt

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of DSmith@xxxxxxxxxxxxxxxxxxxxx
Sent: Tuesday, December 23, 2008 10:32 AM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Calling CGI Programs in Apache Server

Good morning!

I have been looking for a way to configure our Apache http server so that
it will call CGI programs based on what library the program is in. I'm
aware that the statement: SetEnv QIBM_CGI_LIBRARY_LIST
"QTEMP;QGPL;TSTLIB;CGILIB:" can set a library list for the web server, but
if I have the original version of CGIPGM1 in CGILIB and I have a test
version in TSTLIB, the version in TSTLIB doesn't get called - only the old
version that's in CGILIB. That's because it's calling the program based
on the following statement in our httpd.conf file: ScriptAliasMatch
/cgi-bin/(.*) /QSYS.LIB/CGILIB.LIB/$1.PGM - any program in the URL is
going to be called from CGILIB. I cant figure out how to get a few
programs in TSTLIB to be called rather than the ones in CGILIB. Is anyone
aware of any method or statement that I can use that can accomplish my
objective, other than creating another entire web instance? (I already
have three!)

Thanks in advance,

Don

==================================
Donald W. Smith
IBM Certified AS/400 Programmer/Analyst
Microsoft Certified Professional
Information Systems Department
City of Lancaster, Pennsylvania
DSmith@xxxxxxxxxxxxxxxxxxxxx

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.