SathishF5Dasam
Jun 04, 2016Nimbostratus
Apache to irule (inserting IP address in HTTP request/query)
I'm trying to insert remote address for the below http uri in IRULE (no X-forward)
If i request for URL like https://www.abcd.com/123/ then that becomes
‘https://www.abcd.com/123/?remote-addr=10.10.10.5®ex10.10.10.5’ only for the query it must match
Rule in Apache:
RewriteRule ^(/123/.+)$ $1\?remote-addr=%{REMOTE_ADDR}\®ex=%{REMOTE_ADDR} [PT,QSA]
Appreciate irule coders!!!