Re: Apache config
[email protected] Sun, 23 Oct 2022 10:22:10 -0400
| Newsgroups | gmane.comp.systems.as400.web |
|---|---|
| Message-ID | <[email protected]> |
Am I understanding that I can't control the libl AND have it call the common program with the apache config? It sounds like you are saying that it can only be one or the other. -----Original Message----- From: WEB400 <[email protected]> On Behalf Of Brad Stone Sent: Sunday, October 23, 2022 10:09 AM To: Web Enabling the IBM i (AS/400 and iSeries) <[email protected]> Subject: Re: [WEB400] Apache config 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 <[email protected]> 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: [email protected] To > subscribe, unsubscribe, or change list options, > visit: https://lists.midrange.com/mailman/listinfo/web400 > or email: [email protected] 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: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/web400 or email: [email protected] 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: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/web400 or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/web400.