3. But you want VS8080 to also know to which port the actual traffic came in, whether 8080 or 9090, hence your looking for the header X-F-Port.
Well, you are removing X headers but you also want port header. Can you share your existing irule, unless you insert port header info back again, I don’t think you can get this information on other virtual.
Actually it’s not removed by your VS8080, I think it doesn’t get passed to VS8080 in first place.
The way how VS9090 redirects is through 302. When you use http2https redirect irule, it uses HTTP::REDIRECT method on the HTTP_REQUEST event. You cant pass headers. Well you could still try going with HTTP::RESPOND method with a 302 with Location header. But still it wouldn’t work.
When a 302 comes back to client, the browser takes the Location header information and passes it a new Get request, thus your headers even if you had passed with HTTP::RESPOND would still get dropped in the new Get request which goes to the new VS8080.
The only way I can think of is, to pass your header info along with the value of Location header. And once the traffic reaches the VS8080, you would inspect the inbound request and filter it out accordingly.