Skip to content

Instantly share code, notes, and snippets.

@anthonysomerset
Created November 10, 2011 11:08
Show Gist options
  • Save anthonysomerset/1354618 to your computer and use it in GitHub Desktop.
Save anthonysomerset/1354618 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