yamo'
2012-04-27 15:25:58 UTC
Hi,
I want to use an environment variable created by mod_rewrite in an
apache configuration file. This variable may not be readable outside
mod_rewrite?
RewriteRule ^/git/(.*).git/(.*)/(.*) - [env=PROJET:$1]
It is to have a simple and dynamic configuration file for git by
authentication from an active directory by group.
I can write the value of this environment variable to a log file but I
can't do more!
LogFormat "%{PROJET}e %U" git
CustomLog logs/git_log git
In the <Location /git/> there's no environment variable which could be read?
I've tried %{PROJET} %{ENV:PROJET}...
mod_rewrite was the only module I've found which can do that, I do not
to rewrite the url, I only want to get the name of the project.
I tried for days and now I ask you if someone already did it?
I want to use an environment variable created by mod_rewrite in an
apache configuration file. This variable may not be readable outside
mod_rewrite?
RewriteRule ^/git/(.*).git/(.*)/(.*) - [env=PROJET:$1]
It is to have a simple and dynamic configuration file for git by
authentication from an active directory by group.
I can write the value of this environment variable to a log file but I
can't do more!
LogFormat "%{PROJET}e %U" git
CustomLog logs/git_log git
In the <Location /git/> there's no environment variable which could be read?
I've tried %{PROJET} %{ENV:PROJET}...
mod_rewrite was the only module I've found which can do that, I do not
to rewrite the url, I only want to get the name of the project.
I tried for days and now I ask you if someone already did it?
--
Stéphane
Stéphane