Forum Discussion
VS configuration
Hi,
In addition to above and to your redirection query.
- Create two VS with same Name and IPs but use port 443 and 80
- 443 will have all the configurations , Persistance ,Pool, Pool Members etc.
- In 80 VS add an iRule to redirect the connection to 443 VS
You can use the simple one:
when HTTP_REQUEST {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
Regards,
Aditya
- MvdGAug 08, 2017
Cirrus
Missed the part of the redirection.
Aditya is right. Create a second VS on port 443 and add an iRule on the port 80 VS for the redirection to port 443. This is a default iRule within the LTM iRule list: _sys_https_redirect
Do not forget to add a SSL Profile (Client) on the port 443 VS. For testing this can be clientssl-insecure-compatible.
- immuAug 08, 2017
Altostratus
Martin and Aditya really appreciate the response given by both of you...as I have 25 number of VIP's to be created can I get the cli procedure to do the above task..
Thanks Immu
- Aditya_MehraAug 09, 2017
Cirrus
Hi Immu,
It depends on the settings of the Virtual Server and Pools. You should refer to the Traffic Management Shell (tmsh) Reference Guide for your version.
For example this is for 11.5.0 : Guide
The command to create basic VS,Pool and Nodes will be the below:
tmsh create ltm node address tmsh create ltm pool members add { : } tmsh create ltm virtual destination : pool
But there are many more parameters which you will need to add; those you can check in the Traffic Management Shell (tmsh) Reference Guide for your version.
Regards,
Aditya - Aditya_248044Aug 09, 2017
Nimbostratus
Hi Immu,
It depends on the settings of the Virtual Server and Pools. You should refer to the Traffic Management Shell (tmsh) Reference Guide for your version.
For example this is for 11.5.0 : Guide
The command to create basic VS,Pool and Nodes will be the below:
tmsh create ltm node address tmsh create ltm pool members add { : } tmsh create ltm virtual destination : pool
But there are many more parameters which you will need to add; those you can check in the Traffic Management Shell (tmsh) Reference Guide for your version.
Regards,
Aditya - immuAug 11, 2017
Altostratus
Thanks Aditya
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