Forum Discussion
http to https redirect
i have 2 Virtual servers ( 1. http_VS with service 80 and 2. https_VS with 443 enabled) both having the same Pool members running service 80.
Now the issue am facing is:
tying "http://mydomainname" the browser is showing This site cant be reached. I verified the firewall NAT and security rule is working fine.
typing "https://mydomainname" the browser opens the website successfully.
http to https redirect irule is applied to my virtual servers, but its not working
am not good at irule; hence not sure whether its an irule issue or what .
Any help will be greatly appreciated folks
3 Replies
- Hoang_Hung
Cirrus
Hi
Before you use domain name. You should try test with IP. ( from Local).
Can you sent irule to us. Why you need reidrect.
Normal. IF user use comand: http ( you use irule for F5) with purpose redirect to https.
If you use 2 VS with purpose separate. You will not use irule.
Thanks
Hung Hoang
- nsrc
Nimbostratus
thanks hung,
am using a default http-to-https-redirect irule template.
i want clients who are accessing the website via http; shoud redirect to https, for this purpose i used irule.
below is the defualt irule am using
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
definition-signature WsYy2M6xMqvosIKIEH/FSsvhtWMe6xKOA6i7f09Hbp6tJviSRXSan9xiuI8AUXXeWwB4wU/ZVfd8OXR92fOjZY1GFyea9NoY64nZMZ3+/Yy5XuiqA1bBUNIpZNmv2/zYOhDBsO0Wg27evtJrkgU/3K0cBMIgaAM5gDjlmd1KPSPmpXgcMzNpbSuNAgw8uy5FKlFEjjSNmTzTvKy83QcFFoigAixOsq0ds9Qt2gPvQ+u/4qibvTo/mxf5LF1rDc1cWoVxwspGbC5VMt1DKjG5hRo0PAr2ES9bUyQst+30CoSULDgl3hWt9Q4S5OCKbwTHRZmglvZ12s8+Qolr56cVtQ==
:
Do you have http port open on the firewall for VS IP to reach 80 port request till your virtual server?
If its already opened, then check if your http virtual server are getting hits. You can check it under statistics.
Now if you are using http Virtual Server to redirect request to https only, you dont need to map pool to it. Just apply default iRule of redirecting request from http to https.
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