Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Setenv with a dynamic variable

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Multiple Apache virtual systems  
Author Message
user2457

External


Since: Sep 04, 2003
Posts: 5



(Msg. 1) Posted: Thu Sep 11, 2003 6:13 pm
Post subject: Setenv with a dynamic variable
Archived from groups: alt>apache>configuration (more info?)

Hi all,

I would like to use Setenv directive like this :
SetEnv USER_AUTH ${SSL_CLIENT_S_DN_Email}

but the result is "${SSL_CLIENT_S_DN_Email}" (with phpinfo) and not the
email. Can someone help me ?

Thanks!

 >> Stay informed about: Setenv with a dynamic variable 
Back to top
Login to vote
jring

External


Since: Jun 30, 2003
Posts: 154



(Msg. 2) Posted: Mon Sep 15, 2003 6:27 pm
Post subject: Re: Setenv with a dynamic variable [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > I would like to use Setenv directive like this :
 > SetEnv USER_AUTH ${SSL_CLIENT_S_DN_Email}
 >
 > but the result is "${SSL_CLIENT_S_DN_Email}" (with phpinfo) and not the
 > email. Can someone help me ?

well, SetEnv can use only fixed values iirc, so no luck here. one
could try to sneak around this with mod_rewrite (see
[PT,E=USER_AUTH:${SSL_CLIENT_S_DN_Email}] as a flag to some
rewrite-rule) which might or might not work.

but in your case you should be able to access the variable in php
under it's proper name. if it isn't in the environment, you probably
need

SSLOptions +StdEnvVars + ExportCertData

for the appropriate context your php stuff is in...

joachim<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Setenv with a dynamic variable 
Back to top
Login to vote
user2457

External


Since: Sep 04, 2003
Posts: 5



(Msg. 3) Posted: Thu Sep 18, 2003 12:59 am
Post subject: Re: Setenv with a dynamic variable [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Joachim Ring a écrit :
  >>I would like to use Setenv directive like this :
  >>SetEnv USER_AUTH ${SSL_CLIENT_S_DN_Email}
  >>
  >>but the result is "${SSL_CLIENT_S_DN_Email}" (with phpinfo) and not the
  >>email. Can someone help me ?
 >
 >
 > well, SetEnv can use only fixed values iirc, so no luck here. one
 > could try to sneak around this with mod_rewrite (see
 > [PT,E=USER_AUTH:${SSL_CLIENT_S_DN_Email}] as a flag to some
 > rewrite-rule) which might or might not work.
 >
 > but in your case you should be able to access the variable in php
 > under it's proper name. if it isn't in the environment, you probably
 > need
 >
 > SSLOptions +StdEnvVars + ExportCertData
 >
 > for the appropriate context your php stuff is in...
 >
 > joachim

Thanks for your help, it was for a reverse-proxy SSLv3 and now it works
fine with :
RewriteRule /^(.*)$ <a style='text-decoration: underline;' href="http://hide-host/$1" target="_blank">http://hide-host/$1</a> \
[env=USER_AUTH:${SSL_CLIENT_S_DN_Email}]<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Setenv with a dynamic variable 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache 2.0 caching dynamic scripts? - I'm writing some dynamic Ruby scripts that are run using the fastCGI module. I'm having a weird problem that I recall experiencing with PHP scripts as well. It only happens for me in Apache 2.0. It appears that Apache itself is caching the scripts....
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]