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 /gmid.h | |
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 'gmid.h')
-rw-r--r-- | gmid.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -175,6 +175,7 @@ struct location { X509_STORE *reqca; int disable_log; int fcgi; + struct envhead params; char dir[PATH_MAX]; int dirfd; @@ -209,7 +210,6 @@ struct vhost { */ struct lochead locations; - struct envhead params; struct aliashead aliases; struct proxyhead proxies; }; @@ -389,7 +389,7 @@ const char *vhost_default_mime(struct vhost*, const char*); const char *vhost_index(struct vhost*, const char*); int vhost_auto_index(struct vhost*, const char*); int vhost_block_return(struct vhost*, const char*, int*, const char**); -int vhost_fastcgi(struct vhost*, const char*); +struct location *vhost_fastcgi(struct vhost*, const char*); int vhost_dirfd(struct vhost*, const char*, size_t*); int vhost_strip(struct vhost*, const char*); X509_STORE *vhost_require_ca(struct vhost*, const char*); @@ -418,7 +418,7 @@ int select_non_dotdot(const struct dirent*); void fcgi_read(struct bufferevent *, void *); void fcgi_write(struct bufferevent *, void *); void fcgi_error(struct bufferevent *, short, void *); -void fcgi_req(struct client *); +void fcgi_req(struct client *, struct location *); /* sandbox.c */ void sandbox_main_process(void); |