Regex expression cut header

Hi. I get in referer header url like this - ‘test.com/etc.hfh’ from this I want to extract etc.hfh and attach to name header. How can I do it?

Two questions:

  1. What’s the name of the header?
  2. Is it an HTTP Request header (passed to the back-end) or HTTP Response header (sent back to the client)?

Firstly. Reverse proxy headers.
header_up Host {host} or name host
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Port {server_port}

And use a regexp matcher to extract the part of the Referer header you want.
regexp matcher to extract the part of the Referer header you want.

These are irrelevant to the posted query. Please be mindful of the question and the response you’re posting.

OK.Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.