Forum Discussion
William__Humphr
Nimbostratus
May 02, 2007Preserving outside accessible URL when directing to a localhost
I have url running on a local server as https://localhost/reporting/login.jsf. I would like to have my outside accessible url (https://www.calgbapps.org/ to point to the local host but preserve the ur...
William__Humphr
Nimbostratus
May 02, 2007Thanks Deb,
I took the rule that you had in the article: Do I have this written right?
when HTTP_REQUEST {
set origURI [HTTP::uri]
set newURI "/Reporing/login.jsf[HTTP::uri]"
HTTP::uri $newURI
log local0. "Original URI: $origURI"
log local0. "Rewritten URI: $newURI"
}
when HTTP_RESPONSE {
if { [HTTP::status] starts_with "3" } {
set origRedir [HTTP::header Location]
set newRedir [string map {"/Reporting/login.jsf" "" } [HTTP::header Location]]
HTTP::header replace Location $newRedir
log local0. "Original redirect: $origRedir."
log local0. "Rewritten redirect $newRedir"
}
}
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
