Forum Discussion
Smae VIP with SSL for multiple application, URL based forwarding
Hello mates, I need help on below scenario working on https. /
example :- if url https://hello.abc.com will be go to Pool :- hello.abc.com
if url https://hi.abc.com will go to Pool :- hi.abc.com
where VIP is same with https port for https://hello.abc.com & https://hi.abc.com
10 Replies
- Dheer_282482
Nimbostratus
Hello mates, I need help on below scenario working on https. /
example :- if url https://hello.abc.com will be go to Pool :- hello.abc.com
if url https://hi.abc.com will go to Pool :- hi.abc.com where VIP is same with https port for https://hello.abc.com & https://hi.abc.com - Benjamin_Cuisin
Nimbostratus
Hi,
You can choose LTM policies or irules to have several fqdn on the same Virtual Server. If you are using SSL, you need to provision a valid SSL certificate. A SAN certificate or a wildcard is required.
- Benjamin_Cuisin
Nimbostratus
If you choose using the irule, you can try the following one :
when HTTP_REQUEST { switch -glob [string tolower [HTTP::host]] { "hello.abc.com*" { pool poolname1 } "hi.abc.com*" { pool poolname2 } } }You also need to assign a oneconnect profile to avoid Load Balancing decision issues.
- Dheer_282482
Nimbostratus
Hi Benjamin ,
Thanks it's working with HTTP, but not with HTTPS.
- ekaleido
Cirrus
Create a string datagroup named hostpools like the following:
when HTTP_REQUEST { set hostpool [class match -value [string tolower [HTTP::host]] equals hostpools] if { $hostpool ne "" } { pool $hostpool } else { discard } }- Dheer_282482
Nimbostratus
HI Ekaleido,
Not able to create irule based on your suggestion
can you help me for mapping example :- if url https://hello.abc.com will be go to Pool :- hello.abc.com
if url https://hi.abc.com will go to Pool :- hi.abc.com
where VIP is same with https port for https://hello.abc.com & https://hi.abc.com - ekaleido
Cirrus
My iRule does exactly what you're asking for, it just uses a data group to validate that the URL is valid and should be delivered, then it delivers it to a pool sharing the name of the host.
- ekaleido_26616
Cirrocumulus
Create a string datagroup named hostpools like the following:
when HTTP_REQUEST { set hostpool [class match -value [string tolower [HTTP::host]] equals hostpools] if { $hostpool ne "" } { pool $hostpool } else { discard } }- Dheer_282482
Nimbostratus
HI Ekaleido,
Not able to create irule based on your suggestion
can you help me for mapping example :- if url https://hello.abc.com will be go to Pool :- hello.abc.com
if url https://hi.abc.com will go to Pool :- hi.abc.com
where VIP is same with https port for https://hello.abc.com & https://hi.abc.com - ekaleido_26616
Cirrocumulus
My iRule does exactly what you're asking for, it just uses a data group to validate that the URL is valid and should be delivered, then it delivers it to a pool sharing the name of the host.
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
