Forum Discussion
Adam_Borders_10
Nimbostratus
Oct 11, 2012ProxyPass 10.5 URI rewrite failing
I am using LTM 10.2. I am attempting to use the ProxyPass 10.5 iRule located at https://devcentral.f5.com/wiki/iRules.proxypassv10.ashx. I am setting up a staging test environment for multiple websit...
hoolio
Cirrostratus
Oct 12, 2012Nevermind, this looks like a bug in this section of the iRule:
383 Fix Location, Content-Location, and URI headers
384 foreach header {"Location" "Content-Location" "URI"} {
385 set protocol [substr [HTTP::header $header] 0 $host_serverside]
386 if {$protocol ne ""} {
387 set server_path [findstr [HTTP::header $header] $host_serverside [string length $host_serverside]]
388 if {$server_path starts_with $path_serverside} {
389 if { $static::ProxyPassDebug } {
390 log local0. "$log_prefix: Changing response header $header: [HTTP::header $header] with $protocol$host_clientside$path_clientside[substr $server_path [string length $path_serverside]]"
391 }
392 HTTP::header replace $header $protocol$host_clientside$path_clientside[substr $server_path [string length $path_serverside]]
393 }
394 }
395 }
I'll see if there's a simple fix we can add to the general iRule. Else, maybe we can tailor something your your implementation.
Aaron
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
