Skip to content

Instantly share code, notes, and snippets.

@feinar
Forked from anthonysomerset/fastcgi_params
Created September 6, 2018 14:36
Show Gist options
  • Select an option

  • Save feinar/70e5d54f7dda707df14aa0fa1349e23d to your computer and use it in GitHub Desktop.

Select an option

Save feinar/70e5d54f7dda707df14aa0fa1349e23d to your computer and use it in GitHub Desktop.
nginx https if statement for fastcgi_params
set $ssl off;
if ($ssl_protocol != "" ) {
set $ssl on;
}
fastcgi_param HTTPS $ssl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment