Forum Discussion
serebra_83282
Nimbostratus
Jul 08, 2009ProxyPass problem
Greetings,
I followed the instruction on http://devcentral.f5.com/wiki/default.aspx/iRules/ProxyPass to set up ProxyPass and got problem.
In browser, it said:
Conn...
serebra_83282
Nimbostratus
Jul 10, 2009I even tested follow simple code (posted at http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&postid=59883&view=topic) to proxy client request http://www.site1.com/nilo to http://www.site1.com/bcda, it did not work, got same error.
when HTTP_REQUEST {
Initialize a variable to track whether to rewrite the response headers/content
set check_response 0
Check if the path is correct
if {[HTTP::uri] starts_with "/nilo"} {
Track that we'll rewrite the response headers and possibly the payload for this app
set check_response 1
}
}
when HTTP_RESPONSE {
Check if we're potentially rewriting the response headers/payload for this app
if {$check_response}{
Check if JSESSIONID cookie exists
if {[HTTP::cookie exists JSESSIONID]}{
Set the path on the cookie to /sdr/nilo so the client will send the cookie in requests for any path
HTTP::cookie path JSESSIONID "/sdr/nilo"
}
Check if the response is text
if {[HTTP::header value Content-Type] contains "text"} {
Set the replacement text and enable the stream filter
STREAM::expression {@/nilo/@/bcda/@}
STREAM::enable
} else {
Response isn't text, so disable the stream filter
STREAM::disable
}
}
}
By the way, www.site1.com/bcda/ is existed.
Thank you,
Victor
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