Apache Server configuration support - How to use %>s status line in SetEnvIf ?

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > May 2006 > How to use %>s status line in SetEnvIf ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to use %>s status line in SetEnvIf ?
Radix

2006-05-16, 1:17 pm

Anyone know how to get the Status code in the LogFormat %>s to be
visible in the SetEnvIf statement in the httpd.conf (or htaccess)? I
tried using this and it doesn't work:

SetEnvIf %>s 206 let_me_in

I'm trying to restrict PDF download access from local Referer. My
problem is that Adobe can do Partial download and the browser do not
provide REFERER information while it's doing that (status code 206).
So with SetEnvIf I'm trying to make a condition that if it's a Status
code 206 I want to let the client download the rest of the PDF file.

Any help/idea is greatly appreciated.

regards,
rudy

Robert Ionescu

2006-05-29, 5:40 pm

Radix wrote:
> Anyone know how to get the Status code in the LogFormat %>s


Those are two completely different modules and they act in completely
different phases of the processing.

You might check for the request header 'Range'

SetEnvIf Range ".+" let_me_in

--
Robert
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com