Forum Discussion
lieweffect_3313
Nimbostratus
Jul 18, 2018LTM Virtual Server is https but actual web server is http
Hi,
I have web server which the application is running on HTTP only.
On the F5, I have setup a virtual server with HTTPS port and the resource pool is point to the HTTP node.
The problem is...
youssef1
Cumulonimbus
Jul 18, 2018Hi,
It is maybe because some URL in your page (Body) is an Absolute URLs. That's mean that even you use your HTTPS VS the response from server contains Absolute URLs (with URL using HTTP and not HTTPS). maybe the post of your form for authentication.
Can you test this alternative in order to fix your problem.
- In your HTTPS VS set a stream profil (you can set default stream profile).
- Then create this irule and attach it to your HTTPS VS:
Irule that allow to rewrite body in order to replace http:// by https://
when HTTP_REQUEST {
STREAM::disable
HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression {@http://@https://@}
STREAM::enable
}
}
Test this alternative and keep me in touch.
Regards
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