ralftorsten
IS-IT--Management
Hi,
I have been looking for a solution to my problem almost everywhere now, but still no success. Maybe someone here can help!
I have a program that acts as a rewrite map to mod_rewrite. Now, Apache starts the map only once, and not for every request. So far so good. I'd like to read a variable from the operating system (Solaris) environment, from which I start Apache (which I assumed to be the same passed on to the rewrite map program).
PassEnv and SetEnv directives seem indeed only to work for SSIs and CGIs as indicated in the documentation. In fact, the environment from which the rewrite map is started appears to be completely empty.
How can I pass an environment variable value to the rewrite map program? Or, what would be an elegant alternative to pass some configuration info (e.g. documentroot path) to the rewrite map program?
Kind regards
Ralf
I have been looking for a solution to my problem almost everywhere now, but still no success. Maybe someone here can help!
I have a program that acts as a rewrite map to mod_rewrite. Now, Apache starts the map only once, and not for every request. So far so good. I'd like to read a variable from the operating system (Solaris) environment, from which I start Apache (which I assumed to be the same passed on to the rewrite map program).
PassEnv and SetEnv directives seem indeed only to work for SSIs and CGIs as indicated in the documentation. In fact, the environment from which the rewrite map is started appears to be completely empty.
How can I pass an environment variable value to the rewrite map program? Or, what would be an elegant alternative to pass some configuration info (e.g. documentroot path) to the rewrite map program?
Kind regards
Ralf