× 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 never used those environment variables to set the libl. I use my push
and pop libl functions. Much more convenient and no stopping and starting
the instance if it changes.

A simple control file to point to a job description (heaven forbid those
are used!) or just a simple library list file. Easily updatable for the
next time the program runs.

On Sun, Oct 23, 2022 at 11:56 AM Vern Hamberg via WEB400 <
web400@xxxxxxxxxxxxxxxxxx> wrote:

Shouldn't the OP be fine using those settings but specify the same
program in each? It seems he has only to retrieve the value of the
QIBM_CGI_LIBRARY_LIST environment variable and set the LIBL from it?
The docs say "The internal environment variables set by this directive
are set after most early request processing directives are run", so it
probably depends on timing.

I speak from long-time-ago working with this stuff, so please forgive if
I'm as clueless as ever!

Regards
Vern

On 10/23/2022 9:09 AM, Brad Stone wrote:
Yes, but you'd need to control the library list in your program itself.

What I do is set an environment variable to prod or test, retrieve it,
and
set the library list dependent on that at the beginning of the program.
I
have some push and pop lib functions I use for that.

But in your case I don't see an issue.. I would personally prefer 2
apache
instances, one for prod and one for test/dev as well as separate
libraries. Then I would run the test one on a different port (like 8080
or
8443).

On Sun, Oct 23, 2022 at 7:46 AM<smith5646midrange@xxxxxxxxx> wrote:

I have the following in my apache config file.



ScriptAlias /httpprod /qsys.lib/httpprod.lib/httpdata.pgm

<Directory /qsys.lib/httpprod.lib>

SetEnv QIBM_CGI_LIBRARY_LIST "QTEMP;QGPL;YAJL;httpproda;httpprodb"

allow from all

order allow,deny

Options +ExecCGI +Includes

SetOutputFilter Includes

</Directory>



ScriptAlias /httptest /qsys.lib/httptest.lib/httpdata.pgm

<Directory /qsys.lib/httptest.lib>

SetEnv QIBM_CGI_LIBRARY_LIST "QTEMP;QGPL;YAJL;httptesta;httptestb"

allow from all

order allow,deny

Options +ExecCGI +Includes

SetOutputFilter Includes

</Directory>



I am using the alias to control the library list between my prod and
test
data. With this config, I have to have two copies of httpdata.pgm, one
in
each library. Is there a way to configure this so both aliases call the
same program such as /qsys.lib/httpcommon.lib/httpdata.pgm?



--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email:WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:https://lists.midrange.com/mailman/listinfo/web400
or email:WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
athttps://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@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
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 ...

Follow-Ups:
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.