Forum Discussion
Rewrite uri translation not working
Can you provide your current configuration for this rule please?
- Anzine321Apr 16, 2024Altocumulus
tm profile rewrite ztest_rewrite_custom {
app-service none
bypass-list none
client-caching-type cache-css-js
defaults-from rewrite-uri-translation
request {
insert-xforwarded-for enabled
rewrite-headers enabled
}
response {
rewrite-content enabled
rewrite-headers enabled
}
rewrite-list none
rewrite-mode uri-translation
uri-rules {
uri_12361712510071115123268111763 {
client {
host 10.244.10.10
path /graph/login/
scheme http
}
server {
host 10.245.2.3
path /login/
port 3000
scheme http
}
type response
}
uri_95164680339253899974116613 {
client {
host 10.244.10.10
path /graph/
scheme http
}
server {
host 10.245.2.3
path /
port 3000
scheme http
}
type request
}
}
}i just review dump and flow like this
from client to F5
GET /graph/ HTTP/1.1
from f5 to server
GET / HTTP/1.1
Response from server to f5
HTTP/1.1 302 Found (text/html)
Response from f5 to client
HTTP/1.1 302 Found (text/html)
on my lab with different server work properly and request from client add /graph/login uri
- PauliusApr 16, 2024MVP
I do apologize, but from your update it seems like things are working the way you explained. If you could explain this in a different way I should be able to assist you. If you can provide what the client sends and what you want the server to receive that would be helpful. An example as follows.
client -> f5 - /hello
f5 -> server - /hello/world
server -> f5 - /hello/world
f5 -> client - /hello
- Anzine321Apr 17, 2024Altocumulus
this is dump on my lab
client send GET /setup > F5 remove setup > server
server send 302 > F5 > client
client send /setup/login > f5
on my dev env
client send /graph > f5 remove /graph > server
server send 302 > f5 > client
client send /login > f5
the goal is client send /graph/login uri to f5
i have checked conten 302 and found
HTTP/1.1 302 Found
Location: /login
<a href="/login">Found</a>.
i want to ask uri translation will add /graph/login and send to client after server respnd 302 /login ?
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