Forum Discussion
diana_24252
Nimbostratus
May 08, 2008Redirect to HTTPS doesn't work properly
Redirect to HTTPS doesn't work properly
Description of the problem:
Web site: testcustompoint.rrd.com (it is a test only site so there is an SSL name error)
The web server...
hoolio
Cirrostratus
May 08, 2008Do you have the iRule attached to the HTTP VIP? If so, the rule should not allow an HTTP request to a URI starting with /xs2/prelogin. If you're seeing this, try to add logging to see exactly what's happening:
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port] -> [IP::local_addr]:[TCP::local_port]: new HTTP request to [HTTP::uri]"
if { [HTTP::uri] starts_with "/xs2/prelogin" } {
log local0. "[IP::client_addr]:[TCP::client_port] -> [IP::local_addr]:[TCP::local_port]: URI started with /xs2/prelogin, redirecting to https"
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
The log output is written to /var/log/ltm by default.
Aaron
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