1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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