Forum Discussion
How to remove the context /abc when deployed via F5
Internal URL is http://server1.com/abc/login.asp.
External F5 facing URL should be http://fqdn.com/login.asp.
How do I make F5 can remove the context so end users type /login.asp but it internally is seen as /abc/login.asp.
Thank-you
26 Replies
- janholtz
Altostratus
Nominally easiest and recommended method is via the rewrite profile... (Local Traffic / Profile / Services).
Failing that there is always the ProxyPass irule: https://devcentral.f5.com/codeshare/proxypass-v10-v11.
Failing that you could do a [HTTP::path] extract regex and set, with an associated stream profile.
Try the rewrite profile first, it's really handy.
Sproggg
Hi,
You can try using a rewrite profile so you will be able to specify the client side and server side uri
- Edouard_Zorrill
Nimbostratus
Guys, thank-you for quick reply as I needed. You meant to say Local Traffic > Profiles > Services > HTTP ? I am not able to see there the client side and server side URI. Please advise. Thank-you, - No, I'm talking about rewrite profiles. You can also use them with APM
- Yann_Desmarest_
Nacreous
Hi,
You can try using a rewrite profile so you will be able to specify the client side and server side uri
- Edouard_Zorrill
Nimbostratus
Guys, thank-you for quick reply as I needed. You meant to say Local Traffic > Profiles > Services > HTTP ? I am not able to see there the client side and server side URI. Please advise. Thank-you, - Yann_Desmarest_
Nacreous
No, I'm talking about rewrite profiles. You can also use them with APM
- Edouard_Zorrill
Nimbostratus
Guys, Thank-you for quick reply as I needed.
You meant to say Local Traffic > Profiles > Services > HTTP ?
I am not able to see there the client side and server side URI. Please advise. Thank-you,
- It's really a rewrite profile that you need to configure. You have to setup a rewrite-uri-translation type
- Edouard_Zorrill
Nimbostratus
Gotcha! - Edouard_Zorrill
Nimbostratus
What should I use in the Rewrite ?. 1.- Ryle type as both, or request only ?. 2.- What should I use in the Client and Server URI ?.
- Yann_Desmarest_
Nacreous
You can have a look at the rewrite profile here: https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/ltm-profiles-reference-11-6-0/2.html?sr=55049758
- Edouard_Zorrill
Nimbostratus
Thanks for all your help. Now it is working as I can see the login page. - Edouard_Zorrill
Nimbostratus
However now I am getting 404 after login for /abc/my.policy. It appears the rewriting is adding /abc/ to the /ma.policy. How can I get that fixed?. - Edouard_Zorrill
Nimbostratus
It works, the rewrite permits me see now the logon page. Now I am getting 404 /abc/my.policy. How can I address that problem now?. Thanks as ever.
You can have a look at the rewrite profile here: https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/ltm-profiles-reference-11-6-0/2.html?sr=55049758
- Edouard_Zorrill
Nimbostratus
Thanks for all your help. Now it is working as I can see the login page. - Edouard_Zorrill
Nimbostratus
However now I am getting 404 after login for /abc/my.policy. It appears the rewriting is adding /abc/ to the /ma.policy. How can I get that fixed?. - Edouard_Zorrill
Nimbostratus
It works, the rewrite permits me see now the logon page. Now I am getting 404 /abc/my.policy. How can I address that problem now?. Thanks as ever.
Hi,
In you case, the rewrite engine take place after The user has been authenticated. So one possible architecture is to use VIP targeting VIP. The access profile is on the internal VS and the rewrite profile on the external VS.
on the external VS, you just add the following irule :
when CLIENT_ACCEPTED { virtual internal_vs }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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