Forum Discussion
Redirect when user browses to VIP instead of DNS name
I know this sounds simple, but is there a way to redirect a client when they http directly to the VIP itself? Case in point, Sometimes Apache and/or IIS has extension that has vulnerabilities, and usually the default IIS/Apache page is a good way to do that. in this case, whenever someone types in http:// they get the default page. What i have dosent work and wanted to get your guys feedback:
when HTTP_REQUEST {
if {[HTTP::host] starts_with "
HTTP::redirect http://www.google.com
}
}
Thoughts?
RGW
2 Replies
- What_Lies_Bene1
Cirrostratus
I'm not sure I understand your requirements but here's an improvement to your rule anyway which redirects any requests to just / to Google. If that's not what you need please clarify the requirement;
when HTTP_REQUEST { if {[HTTP::uri] equals "/" } { HTTP::redirect "http://www.google.com" } } - smiley_dba_1116
Nimbostratus
That steve. The question relates to, instead of someone typing http://www.acme.com, they browse straight to the the VS (http://10.10.10.10) and they get the IIS/Apache page. What I would like to do is when they type in the VS, they get redirected to whatever.
RGW
Recent Discussions
Related Content
* 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