Welcome! Log In Create A New Profile

Advanced

NGINX behing ssl offloader (HAProxy)

Posted by josh4trunks 
NGINX behing ssl offloader (HAProxy)
October 14, 2013 02:18AM
Hi, I have a problem with NGINX that I can't seem to resolve. I figured this would be the best place to ask =]

I have HAProxy doing ssl offloading, set the forward-for-header, and the x-forwarded-proto header.
Almost everything works with my config. The problem I'm having is accessing my website without a trailing slash '/'.

Normally without https, the url will have the slash added by 'try_files', then the index adds index.php. But now with HAProxy in front, nginx seems to be redirecting https://example.com to http://example.com/index.php

Is there an elegant solution to this, like a way to tell nginx when the $scheme is actually different then it thinks?
Thanks for the help!!!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 316
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready