Hello,
I've modified the iRule to address several issues:
Change the 'protocol' (https or http) of absolute URLs on rewrites (in reponses) as necessary
If doing Response Paylod rewrite then also rewite the url-encoded form of urls
Insert 'X-Forwarded-For' only if SNAT used is not 'none'
Added a new parameter to allow other modules (eg. httpclass) to select pool
Fix parsing of [virtual name] for building the ProxyPass class name
Fix Set-Cookie Domain attribute rewrite
Some cosmetic indentation fixes
Add some debug level logs
attached are two patches: one without the indentation fixes -- so you can see just what I changed; and the full patch.
Regards,
Opher Shachar.