aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-07-23 18:45:05 +0000
committerOmar Polo <op@omarpolo.com>2023-07-23 18:45:05 +0000
commita1ba9650a9f0cc0d9e70800d71769d32f927b939 (patch)
tree4ce8a9b5e4cd3aff8a41d4cd67c15f7c07774b17 /utils.c
parentf36ba9be59c1b60aff4b9663f49d8656800afa00 (diff)
revamp fastcgi configuration: make it per-location
this revamps the syntax in the configuration to better match httpd(8) (and in general be less weird) and to allow per-location fastcgi configurations. the bare `param' is now deprecated, but for compatibility it acts like `fastcgi param' would do now. Same story for `fastcgi <pathÂ>'.
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index a020b9f..2a9d4a4 100644
--- a/utils.c
+++ b/utils.c
@@ -348,7 +348,6 @@ new_vhost(void)
h = xcalloc(1, sizeof(*h));
TAILQ_INIT(&h->addrs);
TAILQ_INIT(&h->locations);
- TAILQ_INIT(&h->params);
TAILQ_INIT(&h->aliases);
TAILQ_INIT(&h->proxies);
return h;
@@ -362,6 +361,7 @@ new_location(void)
l = xcalloc(1, sizeof(*l));
l->dirfd = -1;
l->fcgi = -1;
+ TAILQ_INIT(&l->params);
return l;
}