From 8c1b33a78cf3a28b10a20765091caa036f177778 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Thu, 31 Jul 2014 09:34:58 +0000 Subject: Add a configuration variable "fastcgi" to enable it per server or location. --- usr.sbin/httpd/config.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.sbin/httpd/config.c') diff --git a/usr.sbin/httpd/config.c b/usr.sbin/httpd/config.c index 44cd419565f..cc8060f313c 100644 --- a/usr.sbin/httpd/config.c +++ b/usr.sbin/httpd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.7 2014/07/30 13:49:48 reyk Exp $ */ +/* $OpenBSD: config.c,v 1.8 2014/07/31 09:34:57 reyk Exp $ */ /* * Copyright (c) 2011 - 2014 Reyk Floeter @@ -245,6 +245,10 @@ config_getserver_config(struct httpd *env, struct server *srv, sizeof(srv_conf->docroot)); } + f = SRVFLAG_FCGI|SRVFLAG_NO_FCGI; + if ((srv_conf->flags & f) == 0) + srv_conf->flags |= srv->srv_conf.flags & f; + DPRINTF("%s: %s %d received location \"%s\", parent \"%s\"", __func__, ps->ps_title[privsep_process], ps->ps_instance, srv_conf->location, srv->srv_conf.name); -- cgit v1.2.3