Forum Discussion
AngryCat_52750
Nimbostratus
Nov 07, 2013my.policy URI rename
we are starting to implement quite a few APM login pages through the F5. the one thing we have noticed is that no matter what the site name is - www.domain.com or www.example.com, when the login page...
Kevin_Stewart
Employee
Nov 07, 2013It is by design and no way to change that in the configuration. That said, you could technically rewrite it. This is untested, but should work:
when CLIENT_ACCEPTED {
ACCESS::restrict_irule_events disable
}
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/login" } {
HTTP::uri [string map {"/login" "/my.policy"} [HTTP::uri]]
}
}
when HTTP_RESPONSE {
if { ( [HTTP::is_redirect] ) and ( [HTTP::header Location] starts_with "/my.policy" ) } {
HTTP::header replace Location [string map {"/my.policy" "/login"} [HTTP::header Location]]
}
}
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