Forum Discussion
Ram_63318
Nimbostratus
May 29, 2008Redirection
I am trying to redirect 216.23.166.46(VIP) to "http://216.23.166.46/livenation" but so far I am doing something wrong where it wouldn’t redirect or it redirects but I get the page cannot be displayed ...
Ram_63318
Nimbostratus
Jun 07, 2008My Final Post:
Customer has one server behind the load balancer. Listening on port 443 and port 80. Customer has installed SSL cert on this server.
Customer wants all his http to be redirected to https as well. Basically if a user types http://vipnation.com or www.vipnation.com or 216.23.166.46 load balancer should redirect to https://vipnation.com/livenation/php/login.php
I have two virtual servers (one for port 80 and port 443)
I have two pools (HTTP_Member & HTTPS_Member)
I have clientssl enabled for virtual server (SSL) and not for the HTTP virtuals
I have two irules one for the http virtuals and one for https virtuals
when HTTP_REQUEST {
if { ! ([string tolower [HTTP::uri]] starts_with "/livenation") } {
HTTP::redirect http://[HTTP::host]/livenation
}
}
Above irule works fine for redirecting http to http
when HTTP_REQUEST {
if {[HTTP::uri] equals {/}} {
HTTP::redirect "https://vipnation.com/livenation/php/login.php"
}
}
Above irule doesn't work. This is where it should redirect all the http traffic including the https to traffic to https://vipnation.com/livenation/php/login.php
Also the other thing is that the customer has installed ssl cert on the server and when the load balancer redirects http requests the user should be able to see the correct company that issued the ssl cert.
To test....if you go to the server directly...it works https://206.82.216.130/livenation we want the same to happen when going to www.vipnation.com
NOTE: Please ignore my previous posts
Thank you,
Ram Tangella
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects