Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there any way to get the value of following Apache Web Server Environment Variables?

0
Posted

Is there any way to get the value of following Apache Web Server Environment Variables?

0

Location: http://www.jguru.com/faq/view.jsp?EID=425591 Created: May 21, 2001 Author: Alessandro A. Garbagnati (http://www.jguru.com/guru/viewbio.jsp?EID=32727) Question originally posed by Luigi Viggiano PREMIUM (http://www.jguru.com/guru/viewbio.jsp?EID=101985 Luigi, I’m afraid that te short answer is no, there isn’t. Normally those environment variables are available only through the Common Gateway Interface. Many Apache modules (like mod_perl) get those variables and allow the process that they generate to access them or directly, or through basic OS calls. It looks like that mod_jk is not passing all those variables and, through java, there are no way to access to system environment variables (the System.getEnv() has been deprecated). It’s possible that mod_jserv was originally designed to pass those variables (on ApacheJServ’s jserv.properties configuration file there is a property wrapper.env.copyall=[true|false]). But it seems that the Ajp12Connector isn’t reding those variables

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123