Skip to content

Instantly share code, notes, and snippets.

@svetlyak40wt
Created January 24, 2012 13:23
Show Gist options
  • Save svetlyak40wt/1670159 to your computer and use it in GitHub Desktop.
Save svetlyak40wt/1670159 to your computer and use it in GitHub Desktop.
lighttpd_gunicorn_https.cfg
$HTTP["url"] !~ "^/(?:media|ping.html|hna).*" {
$HTTP["scheme"] == "https" {
setenv.add-request-header = ("X-FORWARDED-PROTOCOL" => "ssl", "X-FORWARDED-SSL" => "on")
}
proxy.server = (
"/" => ((
"host" => "127.0.0.1",
"port" => 8302,
))
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment