20-Apr-2023 21:44
I have 10 Virtual servers which are listening on port 443. And I have created 1 VS for each application (10 VS listening on port 80) for redirection to port 443 if someone tries to access via port 80.
Is there any way to create only one (common) virtual server for all applications for redirection instead of creating 10 different VS with redirection profile for 10 different application?
21-Apr-2023 01:16
If you use the _sys_https_redirect iRule the redirection is based on hostname. You can simply create a redirect VS that listen on a network range or an address list. I prefer an adress range.
21-Apr-2023 09:05
In newer versions of TMOS, you can assign multiple destination IP addresses on a single virtual server. More details: https://techdocs.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/big-ip-ltm-virtual-servers-mult...
Simply add multiple virtual servers with the _sys_https_redirect iRule to accomplish this.
21-Apr-2023 16:03 - edited 21-Apr-2023 16:06
@ushan If your intent is to redirect all HTTP traffic to HTTPS you can create one virtual server (VS) listening on any source and destination and port 80 with the default iRule _sys_https_redirect associated to it which will redirect everything to port 443 coming in on port 80. This link has a good list of how the port, ip, and port priority works.