Forum Discussion
Nov 03, 2009
redirect https to a http URL
Hello All,
I already have a VS setup over port 443 (https). What's the correct way to redirect an "https" URL
to a "http" URL?
Current Code Test:
when HTTP_REQUEST {
HTTP::redirect "http://[HTTP::host]/erp/"
log local0. "------re-direct https to http.-----"
}
I am getting the error:
Fri Oct 30 11:59:57 PDT 2009 tmm tmm[13099] 01200006 Packet rejected remote IP 167.3.181.154 port 1315 local IP 167.3.11.176 port 445 proto TCP: Destination VIP disabled.
Fri Oct 30 12:12:01 PDT 2009 tmm tmm[13099] Rule https_to_http_TRX HTTP_REQUEST: ------re-direct https to http.-----
Any help is fully appreciated.
Thanks!
Regards,
TRX
3 Replies
- The_Bhattman
Nimbostratus
I think the first error might be unrelated to your problem
Here is a Ask.f5.com solution article regarding that
https://support.f5.com/kb/en-us/solutions/public/8000/000/sol8009.html
Now your current code looks. Besides the error is it actually working?
CB - Nope. If you use something like "https://qaddev.qad.com", it will just hang and NOT do anything.
I see many forums on how to redirect http urls to https, but NOT vis versa. Does anyone know of any examples that redirects URLs from https to http?
Thanks!
Regards,
TRX - The_Bhattman
Nimbostratus
Are you terminating the SSL on the LTM? Where the cert is on the LTM.
CB
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