Welcome! Log In Create A New Profile

Advanced

Re: HTTPS header missing from single server

Francis Daly
March 10, 2013 06:42AM
On Sat, Mar 09, 2013 at 09:51:02PM -0800, Grant wrote:

Hi there,

> How can I make nginx set the HTTPS header in a single http/https
> server?

What is "the HTTPS header"?

> piwik with force_ssl=1 on apache goes into a redirect loop
> because it doesn't know SSL is on due to the nginx reverse proxy.

This sounds like one or more fastcgi_param key/value pairs are not set
the way your application wants them to be set.

http://nginx.org/r/fastcgi_param is how you set them. And it
includes an example with the $https variable, which is described in
http://nginx.org/en/docs/http/ngx_http_core_module.html#variables

The usual nginx directive inheritance rules apply, so you'll want to add
your fastcgi_param line to the correct place -- possibly just after you
include the external file.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

HTTPS header missing from single server

Grant March 10, 2013 12:52AM

Re: HTTPS header missing from single server

Francis Daly March 10, 2013 06:42AM

Re: HTTPS header missing from single server

Grant March 10, 2013 06:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 177
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