mod_env.c env variables not passed to fcgid process spawned by Apache 2

Discussion in 'Apache' started by bvraghav, Apr 1, 2015.

  1. #1
    I am working with Wt C++ framework. And it pretty much works with mod_fcgid.c

    However I want to pass this ENV VAR to the script from .htaccess which is not happening. Following is the .htaccess
    
    
    <IfModule mod_env.c>
      SetEnv WT_APP_ROOT /home/bvr/approot/test-env
      PassEnv WT_APP_ROOT
    </IfModule>
    Code (ApacheConf):
    Documentation for mod_env.c says that "[It] is then available to Apache HTTP Server modules, and passed on to CGI scripts and SSI pages."

    Is an env variable set by SetEnv directive available to the fcgid processes spawned by the Apache Http Server?
     
    bvraghav, Apr 1, 2015 IP