aboutsummaryrefslogtreecommitdiff
path: root/fcgi.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 /fcgi.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 'fcgi.c')
-rw-r--r--fcgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fcgi.c b/fcgi.c
index 7a141a5..281dfaa 100644
--- a/fcgi.c
+++ b/fcgi.c
@@ -371,7 +371,7 @@ fcgi_error(struct bufferevent *bev, short err, void *d)
}
void
-fcgi_req(struct client *c)
+fcgi_req(struct client *c, struct location *loc)
{
char buf[22];
char *qs;
@@ -398,7 +398,7 @@ fcgi_req(struct client *c)
free(qs);
}
- TAILQ_FOREACH(p, &c->host->params, envs) {
+ TAILQ_FOREACH(p, &loc->params, envs) {
fcgi_send_param(c->cgibev, p->name, p->value);
}