Re: [users@httpd] How to print request headers before and after processing

2018-03-23 Thread Martin Knoblauch
Hi Rainer, thanks for the enlightenment :-) I was not aware, that the RewriteRule check is done before actually evaluating the RewriteCond(s). So, out of curiosity I gave it a try. As I only need to look for the GET request on the login-page, this works fine for me: RewriteCond

Re: [users@httpd] How to print request headers before and after processing

2018-03-22 Thread Rainer Jung
Am 22.03.2018 um 18:56 schrieb Martin Knoblauch: Hi Rainer,  unfortunately mod_log_debug seems to work only on directory scope, not on virtual host. But note, that is directory scope, for instance ... And I considered the mod_rewrite thingy, but feared it to be to expensive. >  

Re: [users@httpd] How to print request headers before and after processing

2018-03-22 Thread Martin Knoblauch
Hi Rainer, unfortunately mod_log_debug seems to work only on directory scope, not on virtual host. And I considered the mod_rewrite thingy, but feared it to be to expensive. In the meantime I found "mod_log_forensic". Ugly, I do not know the cost, but it works for my purpose. Thanks Martin

Re: [users@httpd] How to print request headers before and after processing

2018-03-22 Thread Rainer Jung
Am 22.03.2018 um 18:08 schrieb Eric Covener: On Thu, Mar 22, 2018 at 1:03 PM, Martin Knoblauch wrote: Hi Eric, thanks, but does not work. login_jsid=Cookie prints "Cookie" login_jsid=%{Cookie} prints "%{Cookie}" Apparently the right sides of the assignment are just

Re: [users@httpd] How to print request headers before and after processing

2018-03-22 Thread Eric Covener
On Thu, Mar 22, 2018 at 1:03 PM, Martin Knoblauch wrote: > Hi Eric, > > thanks, but does not work. > > login_jsid=Cookie prints "Cookie" > login_jsid=%{Cookie} prints "%{Cookie}" > > Apparently the right sides of the assignment are just taken as literals > without evaluating

Re: [users@httpd] How to print request headers before and after processing

2018-03-22 Thread Martin Knoblauch
Hi Eric, thanks, but does not work. login_jsid=Cookie prints "Cookie" login_jsid=%{Cookie} prints "%{Cookie}" Apparently the right sides of the assignment are just taken as literals without evaluating them as variables. Had a brief look at mod_log_debug, but do not see how it helps me in

Re: [users@httpd] How to print request headers before and after processing

2018-03-22 Thread Eric Covener
On Thu, Mar 22, 2018 at 12:50 PM, Eric Covener wrote: > have you looked at mod_log_debug? > >> SetEnvIfExpr "%{REQUEST_URI} == '/cb2/facelets/logon.xhtml' && >> %{REQUEST_METHOD} == 'GET'" login_get login_jsid=%{HTTP_COOKIE}e > > is the last token of the above line wrong?

Re: [users@httpd] How to print request headers before and after processing

2018-03-22 Thread Eric Covener
have you looked at mod_log_debug? > SetEnvIfExpr "%{REQUEST_URI} == '/cb2/facelets/logon.xhtml' && > %{REQUEST_METHOD} == 'GET'" login_get login_jsid=%{HTTP_COOKIE}e is the last token of the above line wrong? Shouldn't it just be "Coookie"? On Thu, Mar 22, 2018 at 12:23 PM, Martin

[users@httpd] How to print request headers before and after processing

2018-03-22 Thread Martin Knoblauch
Hi, so I need some little help. I need to modify request headers in some situations and for debugging, I want to print the content of the header before and after processing. So I looked at mod_log_config and found: %{VARNAME}i : The contents of VARNAME: header line(s) in the request sent