On Sun, Jan 7, 2018 at 9:25 AM, sebb <sebbaz@xxxxxxxxx> wrote: > The mod_lua docs state that subprocess_env can be used to access > process environment variables [1] It appears to imply that the script > can access standard CGI variables. > > However, the only variables that seem to be defined are: > > SCRIPT_URI > SCRIPT_URL > > There also does not seem to be a way to enumerate the list of variables. > (I found the above by trying the names that are visible to Perl and Python) > > How does one get at the other variables? > > If there is a restriction on what subprocess_env provides, it would be > helpful if it were documented. > > [1] https://httpd.apache.org/docs/trunk/mod/mod_lua.html The CGI variables are lazily added by the CGI-like handler modules right before they kick off their scripts. mod_lua doesn't add them in at any stage (ap_add_cgi_vars()) So there is very little floating around in subprocess_env. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx