Forum Discussion
Hello Ahamd,
you potentially have an absolute link problem. the use of relative link is recommended which allows redirecting the user to the host of this request. to correct this it's quite simple, you just have to create a "rewrite" profile and put the matches that go well.
Let me know if you need help for "rewrite profil" settings.
regards
- iRuleJun 22, 2020Cirrus
Dear Youssef,
I would be grateful if you provide guideline on "rewrite profile" to solve my issue.
For example my VIP URL is http://myVIP:8083/welcome. When the users browse the VIP URL it redirects to http://1.2.3.4:8083/welcome/login URL where 1.2.3.4 is IP of one of pool member. This virtual server contains three pool members.
Regards
Ahmad
- youssef1Jun 22, 2020Cumulonimbus
Hello Ahmad,
So create your rewrite profile.
- On general information -> rewrite mode, configure:
URI Translation
on URI Ttranslation check the following settings (they are already checks by default).
- Request settings: Rewrite Headers
- Request settings: Insert X-Forwarded-For Header
- Response Settings: Rewrite Headers
- Response Settings: Rewrite Content
On URI rules configure your entry like that:
You have to add this rules for each backend server...
keep me in touch.
regards
- iRuleJun 22, 2020Cirrus
Dear Youssef,
I created a rewrite profile and inside it I created a rule for one pool member. Inside same rewrite profile I cannot create 2nd rule for 2nd pool member as it gives me following error. Inside this rewrite I cannot add two more rules for remaining two pool members.
MCP Error01070734:3: Configuration error: /VLAN-xyz/123test: Client URIs must be unique. 'http://myVIP:8083/welcome' is already in use.
This error specifies same client URI cannot be used in more than one rule inside same rewrite profile.
Then I created three different rewrite profiles each containing same client URI and different server URI but in the virtual server I can only choose one rewrite profile to assign to virtual server.
Kind Thanks
Ahmad
- youssef1Jun 23, 2020Cumulonimbus
Hello.
Sorry for the delay.
The error is normal. If you have to rewrite 3 backend servers, when you create your rules, you don't set both.
So in the same rewrite profile create your 3 rules but set in rule type: response.
in this case you should create your 3 rules without errors/ problem.
Keep me in touch
Regards