diff options
author | Omar Polo <op@omarpolo.com> | 2021-05-15 10:31:43 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-05-15 10:31:43 +0000 |
commit | 1feaf2a618ee1c4771fee80ced7acf31fe40fdae (patch) | |
tree | a5953a40af0f3c434a788248aacc0ede3b718818 /gmid.h | |
parent | 91b9f2a8f9d39f2fb842c33049d966777027e5f4 (diff) |
use the correct document root
pass the correct loc_off to the executor, so the various variables
that depends on the matched location (like DOCUMENT_ROOT) are computed
correctly.
Diffstat (limited to 'gmid.h')
-rw-r--r-- | gmid.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -245,6 +245,7 @@ struct client { struct sockaddr_storage addr; struct vhost *host; /* host they're talking to */ + size_t loc; /* location matched */ }; extern struct client clients[MAX_USERS]; @@ -342,7 +343,7 @@ 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*); -int vhost_dirfd(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*); int vhost_disable_log(struct vhost*, const char*); |