Forum Discussion
Need to rewrite with LTM
Hello Rafi, if I'm not mistaken you're having the same issue as this post here.
- globalserver.mydomain.com should resolve to your VS IP
- if SSL is in place, you need a clientSSL profile with a certificate that matches "globalserver" SNI (or wildcard for *.mydomain.com)
- you need HTTP profile on the vitual server to parse request elements
- if backend server speaks SSL, you also need a serverSSL profile
iRule should be pretty simple, this code will rewrite client request before sending it to server -- meaning it will be transparent to client.
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] eq "globalserver.mydomain.com" }{
HTTP::header replace Host "internalserver.com"
HTTP::uri "/portsluser/main#page/"
}
}
My only concern would be that you have hash "#" character in URI, which is a reserved character that is usually only interpreted by client browser (usually not passed to server) to identify a fragment.
Hi,
All the previous conditions are defined, but still with the Irule I see blank page
I actually able to make progress with rewrite profile, I wrote rewrite profile and it works as accepted, when I'm browse to "internalserver.com" the profile rewrite it to "internalserver.com/portsluser/" and the client still see in his browser "internalserver.com", but now the problem is when I'm trying to login I'm getting error 500 from the web site
Any idea ?
Regards
- CA_ValliNov 14, 2022MVP
Hello Rafi,
can you define blank page better?If server responds to "GET /portsluser/ Host: internalserver.com" request with a 200-content that returns a blank page, problem is on the server.
If you have a timeout issue, there might be a problem on the network instead - maybe you might need to fix NAT or routing.If you run curl -vk -H "internalserver.com" https://<internalserver.com node IP>/portsluser/ from F5 command line, what's the output?
If you run curl -vk -H "globalserver.mydomain.com" https://<virtual server IP>/ from F5 command line, what's the output?
- Rafi1Nov 15, 2022Cirrus
Heloo CA_Valli
See attached command output for: curl -vk -H "globalserver.mydomain.com" https://<virtual server IP>
It seems that the irule rewrite the me, but still i get Error 404
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