diff options
author | Omar Polo <op@omarpolo.com> | 2023-07-23 18:45:05 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-07-23 18:45:05 +0000 |
commit | a1ba9650a9f0cc0d9e70800d71769d32f927b939 (patch) | |
tree | 4ce8a9b5e4cd3aff8a41d4cd67c15f7c07774b17 /fcgi.c | |
parent | f36ba9be59c1b60aff4b9663f49d8656800afa00 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |