Forum Discussion
https insert 443
Hi,
My http is working well, but https is not working, https only show one picture, it's a part of http.
my network please refer to the below:
client---->Fortigate(VIP,80,443)---->F5----->Cisco 3850--->Server
my previous network is :
client--->Linux (nginx)--->server both http and https worked well.
nginx setting: proxy_set_header Host $host:443;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
I've no idea how to insert proxy header 443 to server, I also imported ssl certificate and tried irules, but it's still not working.
Any help is appreciated.
2 Replies
It seems you are trying to add HTTP headers. You can use both local traffic policies or irules to achieve this. For more information about local traffic policies see:
Below you'll find an example of an iRule:
when HTTP_REQUEST { HTTP::header insert X-Forwarded-For [IP::remote_addr] }This article could also be useful. It compares BIG-IP LTM and NGINX configurations:
- Stanislas_Piro2
Cumulonimbus
To append 443 port at the end of Host header and insert real IP, use the following code:
when HTTP_REQUEST { HTTP::host "[HTTP::host]:443" HTTP::header insert X-Real-IP [IP::remote_addr] HTTP::header insert X-Forwarded-For [IP::remote_addr] }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
