Forum Discussion
Frank_Ziebarth_
Nimbostratus
Jun 16, 2006rewrite an URI with a request parameter
Hallo
we have two webservices in the development, so the the uri is change very often.
Our end-user should connect to these server to an easy URI
http://server/portal/
http:/...
Frank_Ziebarth_
Nimbostratus
Jun 19, 2006Hallo,
thanks for your fast response.
I use the version from hoolio, it works fine.
I would like extend the iRule with logging
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/portal/" } {
log local0. "Original HTTP uri = [HTTP::uri]"
HTTP::uri [string map { /portal/ /version02.webservices.portal/ } [HTTP::uri]]
log local0. "New HTTP uri = [HTTP::uri]"
pool SDS_Pool01
}
....
But the logging not work correctly, there is no different between the Original URI and the URI after the rewrite.
tmm tmm[989]: Rule _TEST_Frank : Original HTTP uri = /portal/default.aspx
tmm tmm[989]: Rule _TEST_Frank : New HTTP uri = / portal/default.aspx
Can you help me here again?
Thanks Frank.
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
