Forum Discussion
Andre_Muniz
Nimbostratus
May 22, 2014Redirect http post
Hi, i need to redirect http requests.
I do something like HTTP::redirect https://site.example.com[HTTP::uri]
Its ok for http method get but POST its not OK.
The http request client (method POST) is ...
John_Alam_45640
May 22, 2014Historic F5 Account
The JBOSS server probably does not understand a redirect because it is not a browser.
Use encryption on the backend. In other words, accept the traffic as HTTP and forward it as HTTPS. You accomplish that by adding a serverssl profile to the virtual server accepting unencrypted traffic.
This also means that you will be using the same backend pool for both Virtual servers.
By the time you get the POST request, the POST data already traveled in the clear on its way to the BigIP. You may as well just forward it to the backend.
Andre_Muniz
Nimbostratus
May 23, 2014Thanks.
I think encryption on the backend (Apache server) would be impossible at this moment for me.
So I will try something like
if { [string tolower [HTTP::method]] eq "post" } {
do nothing
return
} else { HTTP::redirect https://site.example.com[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