Forum Discussion
ProxyPass Removing Trailing Slash in Host?
Got what I hope is a quick one for the smart people here.
Here's the scenario:
We're using ProxyPass 10.9 to proxy traffic destined for a test URL to a secondary pool. The test URL is site1.mainsite.domain.com
The pool is: site1_1111_dev
Most of the traffic is proxying through fine, the problem comes in when there's a specific 302 redirect resource that is returned by the website. Via HTTPWatch, I can see that the Location header ends up looking like: . This URL of course is missing the slash separating the host from the rest of the URI.
Here's the ProxyPass datagroup for this site: site1.mainsite.domain.com := / /partition1/site1_1111_dev
Here's the debug log in the LTM log: Changing response header Location: https://site1.mainsite.domain.com/SUBpage with
Any thoughts on this? I've attempted changing the "RewriteResponsePayload" to 1 and 2 despite this not seeming like the way to go (since the improper value is actually in a header rather than content). Perhaps I'm overlooking something else obvious here.
1 Reply
- AJ_01_135899
Cirrostratus
I ended up creating a quick iRule to simply select another pool, rather than using ProxyPass. ProxyPass was chosen because it was already implemented for other solutions.
I'd still be curious as to why the trailing slashes weren't handled correctly on this one.
Here's the iRule I ended up using
when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "site1.mainsite.domain.com" } { pool site1_1111_dev } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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