Forum Discussion
Steven_Ruiz_882
Nimbostratus
Nov 23, 2005http->https redirect reveals internal IP addresses
I have a irule setup for redirecting http traffic to https, and its working fine.
However, when issuing a HEAD / request, it serves back the internal/private ip of the web server.
I'd rather have it return something like https://www.mysite.com/ instead of https://10.x.x.x/. Is there a way to accomplish this?
Here's the rule:
rule http_https_redirect {
redirect to "https://%h/%u"
}
Here's a connection:
mycomputer:/Users/stever-> telnet www.mysite.com 80
Trying 11.11.11.11...
Connected to www.mysite.com.
Escape character is '^]'.
HEAD /
HTTP/1.0 302 Found
Location: https://10.2.50.22/
Connection: close
thanks!
- Martin_MachacekHistoric F5 AccountSteven,
yourcomputer:/Users/stever-> telnet www.mysite.com 80 Trying 11.11.11.11... Connected to www.mysite.com. Escape character is '^]'. HEAD / HTTP/1.1 Host: the-host-you-want-to-redirect-to.example HTTP/1.0 302 Found Location: http://the-host-you-want-to-redirect-to.example/ Connection: close
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