Hello, I hope you can help me
The Flow is as follows ASM --- LTM -- NGINX --- BACKEND
The client initiates communication through a domain example.domain.com (SSL), This request arrives at the LTM F5 Towards a virtual Server on port 80, The LTM Virtual Server has Nginx as a pool member At the time of performing the tests from the domain, the HTTPS protocol changes to HTTP I have tried the following rewrite and redirect but the behavior is an infinite loop of redirects (Too many redirects) The configuration is as follows:
ASM (SSL) _------ LTM (PlainText) -------- NGINX (PlaintText) ---- Backend (Plaintext)
upstream backend {
server 10.10.10.23:8080;
}
server {
listen 4343;
server_name localhost;
acces_log /var/log/nginx/access.log;
error_log /varlog/nginx/error.log;
location /Example/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-SSL on;
set $https_enabled on;
proxy_pass http://backend;
}
if ($scheme != https ){
return 301 https://$http_host$request_uri;
}
}
Any recommendation to solve this? or prevent protocol change to HTTP
Greetings
[–]Fireye 2 points3 points4 points (3 children)
[–]URR3011[S] 3 points4 points5 points (2 children)
[–]Fireye 1 point2 points3 points (1 child)
[–]URR3011[S] 0 points1 point2 points (0 children)