Is there any way to get the value of following Apache Web Server Environment Variables?
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