Hi again,
On 28/07/2015 09:42, mlist wrote:
I wrote in the first mail I used 2 different regex. The (1) probably doesn't
match, but the (2) ?
(2) reqirep (.*)\/demoj(.*) \1/DemoJ\2
This regex match https://<hostname>, I'm Wrong ?
Good news for you, at this step, no, you are perfectly right (except
that there is an unneeded antislash before /demoj).
And I realize that you are also right about something unclear in the
documentation : headers transformations only apply when the request line
doesn't match. This is quite well documented in the code, not in the
documentation... Here comes the confusion on your side and mine.
This means that whatever you do, if your request line contains "/demoj"
a regex like (.*)/demoj(.*) will never apply to headers.
You have to sepcify 2 different regex which will ensure that will match
only one case at a time (request line OR headers).
But I still don't understand why you want to modify the referer.
--
Cyril Bonté