Forum Discussion
Lukasz_01_15307
Nimbostratus
Sep 16, 2016f5 irules add headers
Hello, I'm trying to replace Nginx with f5, and I have a few headers I need to set in f5, but I'm not sure how... in nginx the config file looks like this:
proxy_set_header X-Forwarded-Host ...
cjunior
Nacreous
Sep 16, 2016Hi, I think you need to rewrite the response to the reverse logic, so internal goes to external address.
See this: https://devcentral.f5.com/codeshare?sid=645
Basically you would use a profile stream and HTTP_RESPONSE event, then rewrite the contents headers and body before to send to the end user.
Regards.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects