Forum Discussion
Jinshu
Cirrus
Oct 14, 2015Login forms are not displaying after changing http to https
Hi All,
I am trying to configure https on my vip and seems login forms are not displaying on changing to vip port to https. If it is http, it works perfectly.
Not working:
VIP: remote.local:443
...
Jinshu
Cirrus
Oct 15, 2015Thanks Kevin.. It is working now..!!!!! I have used below irule to allow insecure content for http refereces and enabled stram profile in the VS.
when HTTP_REQUEST {
Save the requested host value
set host [string tolower [HTTP::host]]
If the HTTP host header is blank, use the VS IP address
If the VS IP is not routable for clients, hard code a routable IP
to replace [IP::local_addr]
if {$host eq ""}{set host [IP::local_addr]}
Disable the stream filter by default
STREAM::disable
}
when HTTP_RESPONSE {
Check if response type is text and host isn't null
if {[HTTP::header value Content-Type] contains "text" and $host ne ""}{
Replace http://$host with https://$host
STREAM::expression "@http://$host@https://$host@"
Enable the stream filter for this response only
STREAM::enable
}
Rewrite the Location header in redirects to https://
if { [HTTP::is_redirect] && [string tolower [HTTP::header Location]] starts_with "http://$host"} {
HTTP::header replace Location [string map -nocase "http://$host https://$host" [HTTP::header Location]]
}
}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
