Forum Discussion
JasonHeffner_71
Jan 16, 2009Nimbostratus
ProxyPass redirect problem
I'm having some strange issues with proxypass and redirects. I have proxypass setup as follows
/login some.server.edu/login connectstagingapp
/manage some.server.edu/manage conn...
hooleylist
Jan 20, 2009Cirrostratus
Actually, a lot of the rule doesn't seem to be working for me as I would have expected. I'll see if I can test it more thoroughly later. For now, can you try replacing this section:
if {$newpool != ""} {
pool $newpool
if {$snataddr != ""} {
snat $snataddr
HTTP::header insert X-Forwarded-For [IP::remote_addr]
}
}
with this section:
if {$newpool eq ""} {
pool $default_pool
} else {
pool $newpool
if {$snataddr != ""} {
snat $snataddr
HTTP::header insert X-Forwarded-For [IP::remote_addr]
}
}
You'll also need to add a section above "when HTTP_REQUEST":
when CLIENT_ACCEPTED {
Get VIP's default pool name
set default_pool [LB::server pool]
}
That should fix the potential issue where a request would be sent to the pool specified in the class instead of the default pool.
I couldn't get the response payload rewriting to work at all. But if you're using the stream filter and seeing an error with the incorrect rewriting of response content, I think this change should fix the problem. Note that this change will actually generate a runtime error if you use it without a stream profile.
Original:
when HTTP_RESPONSE {
if {1 != $bypass} {
Updated:
when HTTP_RESPONSE {
if {$bypass == 1} {
Disable the stream filter by default
STREAM::disable
} else {
Aaron
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