Forum Discussion
how to loadbalancer urls
how to configure a VIP to loadbalancer urls.Please let me know as I am trying to get familair with f5s.
match http url .* match http url /*
6 Replies
Hey Sandiksk!
Could you please provide some more information? Do you want to choose pools based on uri, host name or something completely different?
/Patrik
- sandiksk_35282
Altostratus
when the client access the vip http://192.168.1.10 tcp eq www. class map should match match http url .* match http url /*
the request need to be fwded to the pool which will load balance to either of the meber ( 2 pool members) predector : least connections persistence: source IP
What do you mean by .* and /*?
/Patrik
- Stanislas_Piro2
Cumulonimbus
Hi,
Patrick, I Think he talks with another product words...
Sandiksk, If I understand, you want to load balance every requests (/* contains all URI) sent to 192.168.1.10 port 80 to 2 pool members...
to do that:
-
create a Virtual server with
- IP 192.168.1.10
- Port : 80
- HTTP profile http
- Source Address Translation : automap (if Pool members's default route is not the F5 self IP)
- Default Pool : Pool predector
- default persistence : source_addr
-
create a Virtual server with
- sandiksk_35282
Altostratus
thanks for your response ,so i dont have to create an iurle to balance /* contains all URI. R the requests will be balanced by default. Do i need to specify anything in the http profile
- Stanislas_Piro2
Cumulonimbus
Hi,
When you create a VS, you define default behavior:
- Pool
- HTTP profile
- SSL Profiles
- Persistence profile
- Source address translation
An irule is often used to change the default behavior based on some conditions.
if you want all traffic is load balance to the same pool, no need to create an irule.
In HTTP profile, you can add X-forwarding-For header if you configure Source address translation. Do not modify the default http profile but create a new one.
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