Forum Discussion
RobS
Altostratus
Jan 22, 2014HTTP to HTTPS policy injecting "/Location: https:///" into URL and breaking application
We have an application I'm load balancing with my LTMs that I was initially told would just need basic load balancing and http to https redirection. Now I find out they are running it out of Citrix s...
Kevin_Stewart
Employee
Jan 23, 2014Is there any chance that the client used to make this call isn't a standard browser? Even with an HTTP/1.0 request, most browsers would insert a Host header (though not expressly required). Maybe something like this might help:
when HTTP_REQUEST {
set host [HTTP::host]
if { $host eq "" } {
set host "myapp.domain.com"
}
HTTP::respond 302 Location "https://$host[HTTP::uri]"
}It'll hard code the Host value if it doesn't exist in the request.
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
