Forum Discussion
hajo_36766
Nimbostratus
Feb 17, 2009change request from HTTP to HTTPS
Hallo,
i need to change the protocol of HTTP-Requests to HTTPS, for example:
http://www.example.org:80/demo1/example1....
to
https://www.example.org:443/demo1/example1
...
hwidjaja_37598
Altostratus
Feb 17, 2009Try this:
when HTTP_REQUEST {
if {[TCP::local_port] == 8080} {
HTTP::redirect https://[getfield [HTTP::host] ":" 1]:8443[HTTP::uri]
} else {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
}
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