-/* $OpenBSD: config.c,v 1.15 2014/08/04 17:38:12 reyk Exp $ */
+/* $OpenBSD: config.c,v 1.16 2014/08/04 18:00:06 reyk Exp $ */
/*
* Copyright (c) 2011 - 2014 Reyk Floeter <reyk@openbsd.org>
if ((srv_conf->flags & f) == 0)
srv_conf->flags |= srv->srv_conf.flags & f;
+ f = SRVFLAG_SSL;
+ srv_conf->flags |= srv->srv_conf.flags & f;
+
DPRINTF("%s: %s %d location \"%s\", "
"parent \"%s\", flags: %s",
__func__, ps->ps_title[privsep_process], ps->ps_instance,
-/* $OpenBSD: server_fcgi.c,v 1.20 2014/08/04 14:49:24 reyk Exp $ */
+/* $OpenBSD: server_fcgi.c,v 1.21 2014/08/04 18:00:06 reyk Exp $ */
/*
* Copyright (c) 2014 Florian Obser <florian@openbsd.org>
goto fail;
}
+ if (srv_conf->flags & SRVFLAG_SSL)
+ if (fcgi_add_param(¶m, "HTTPS", "on", clt) == -1) {
+ errstr = "failed to encode param";
+ goto fail;
+ }
+
(void)print_host(&clt->clt_ss, hbuf, sizeof(hbuf));
if (fcgi_add_param(¶m, "REMOTE_ADDR", hbuf, clt) == -1) {
errstr = "failed to encode param";