Forum Discussion
steven_normole
Dec 15, 2023Cirrus
iRule to rewrite HTTPS URL
have an issue where need to rewrite https URL received from a user to another url going to the backend servers. user sends to https://2.2.2.2/something/uri/here f5 rewrites the url to the backend s...
steven_normole
Dec 18, 2023Cirrus
the requirements have changed. Now mgmt wants to change the Host: <name> in the client HTTP packet to a different name, regardless of what the client is sending as a Host in the packet. So i created this irule, but if there are multiple host header this will replace the last one.
i was looking at the traffic policy, but i cannot get it work, because the host header could be anything. The traffic policy does not seem to like wildcard characters.
when HTTP_REQUEST {
HTTP::header replace Host "<Hostname>"
}
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