[users@httpd] SetEnvIf failure or success?

2012-03-22 Thread J.Lance Wilkinson
I'm trying to extract part of a URI into an environment variable to use in an authorization scheme (let's skip talking about how I'll USED that variable for the moment). I have the following directives in my configuration: LogFormat %h %l %u %t \%r\ %s %b UMG=%{UMG}e umgs CustomLog

Re: [users@httpd] SetEnvIf failure or success?

2012-03-22 Thread Eric Covener
On Thu, Mar 22, 2012 at 10:18 AM, J.Lance Wilkinson jl...@psu.edu wrote: I'm trying to extract part of a URI into an environment variable to use in an authorization scheme (let's skip talking about how I'll USED that variable for the moment). I have the following directives in my

Re: [users@httpd] SetEnvIf failure or success?

2012-03-22 Thread Mysterious Mose
Good morning Lance, I don't think your regexp is quite right. You could test it out with grep or sed or something by echoing in the string from the log. You have: ^/(.*)/umg/.(.*)(.html|/(.*)?)$ I think you mean: ^/(.*)/umg\.(.*)(.html|/(.*)?)$ That is, I believe you want to

Re: [users@httpd] SetEnvIf failure or success?

2012-03-22 Thread J.Lance Wilkinson
Mysterious Mose wrote: Good morning Lance, I don't think your regexp is quite right. You could test it out with grep or sed or something by echoing in the string from the log. You have: ^/(.*)/umg/.(.*)(.html|/(.*)?)$ I think you mean: ^/(.*)/umg\.(.*)(.html|/(.*)?)$ That

Re: [users@httpd] SetEnvIf failure or success?

2012-03-22 Thread J.Lance Wilkinson
Eric Covener wrote: Why both locationmatch AND checking the request URI in setenvif? The elipsis indicates more stuff, of course. Inside my Location stanza are access restriction directives to be applied when the URI matches. I'm hoping (yet another pass on my thread

Re: [users@httpd] SetEnvIf failure or success?

2012-03-22 Thread J.Lance Wilkinson
Eric Covener wrote: On Thu, Mar 22, 2012 at 10:18 AM, J.Lance Wilkinson jl...@psu.edu wrote: I'm trying to extract part of a URI into an environment variable to use in an authorization scheme (let's skip talking about how I'll USED that variable for the moment). I have the following directives

Re: [users@httpd] SetEnvIf failure or success?

2012-03-22 Thread Mysterious Mose
Hello again Lance, PCRE version 7.8 2008-09-05 re @^/(.*)/umg-(.*)(.html|/(.*)?)$@ data /umgs/umg-up.dlt.sslcerts.mgttool/umgs.php 0: /umgs/umg-up.dlt.sslcerts.mgttool/umgs.php 1: umgs 2: up.dlt.sslcerts.mgttool 3: /umgs.php 4: umgs.ph Wow, this is a very handy tool I

Re: [users@httpd] SetEnvIf failure or success?

2012-03-22 Thread J.Lance Wilkinson
J.Lance Wilkinson wrote: 3) SetEnvIf REQUEST_URI ^(.*)/umg-(.*)$ UMG=$1 Logs (non-matching) REQUEST_URI of /server-info?config as: .GET /server-info?config HTTP/1.1 200 38314 UMG=- Logs (matching) REQUEST_URI of /umgs/umg-up.dlt.ul.gml.managers/umgs.php as: .GET