RequestsHeader's set problem

MrB

New Member
#3
Hi, thanks for reply.

This is RULE
RewriteCond %{HTTP_USER_AGENT} (blah.blah|abra.kadabra)
RewriteRule .* - [E=SET_REAL_ORIGIN:https://%{HTTP_ORIGIN},NE]
RewriteRule .* - [E=SET_ORIGIN:https://%{HTTP_HOST},NE]

IN HEADER I SETUP:
RequestHeader set 'X-Real-Origin' %{SET_REAL_ORIGIN}e env=SET_REAL_ORIGIN
RequestHeader set 'Origin' %{SET_ORIGIN}e env=SET_ORIGIN
Header set 'X-Real-Origin' %{SET_REAL_ORIGIN}e env=SET_REAL_ORIGIN
Header set 'Origin' %{SET_ORIGIN}e env=SET_ORIGIN

The funny thing is that when i make a curl request i get return X-Real-Origin and Origin as i set it up. But RequestHeader is not passed with the same ENV setup.
 

MrB

New Member
#4
Ok I see now that with RequestHeader to another server ENV doesn't survive. Now I'm trying with
Syntax: [Header]|RequestHeader [condition] set|append|merge|add|unset header [value] [early|env=[!]variable]

But it looks that condition either I don't know how to set it up or it doesn't work.
 
Top