Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Common Virtual Server for redirection for multiple virtual server

ushan
Altocumulus
Altocumulus

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?

4 REPLIES 4

mihaic
MVP
MVP

If you have 1 VS on port 443 you will need 1 VS on port 80, because you probably use a DNS name for each VS.

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.

G-Rob
F5 Employee
F5 Employee

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.

Paulius
MVP
MVP

@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.

https://my.f5.com/manage/s/article/K14800