aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-05-15 10:31:43 +0000
committerOmar Polo <op@omarpolo.com>2021-05-15 10:31:43 +0000
commit1feaf2a618ee1c4771fee80ced7acf31fe40fdae (patch)
treea5953a40af0f3c434a788248aacc0ede3b718818 /gmid.h
parent91b9f2a8f9d39f2fb842c33049d966777027e5f4 (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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gmid.h b/gmid.h
index e579471..2fbec06 100644
--- a/gmid.h
+++ b/gmid.h
@@ -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*);