aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-04-30 17:16:34 +0000
committerOmar Polo <op@omarpolo.com>2021-04-30 17:16:34 +0000
commitfdea6aa0bca24f6f947e2126ce101fd59caa7a31 (patch)
treec167f225e73250eb8cc82347a23ce7a86cfbf027 /gmid.h
parentadbe6a6493c0e91fcfc918db8f4b5839a2867b1c (diff)
allow ``root'' rule to be specified per-location block
Diffstat (limited to 'gmid.h')
-rw-r--r--gmid.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gmid.h b/gmid.h
index 5eec8af..818f8d7 100644
--- a/gmid.h
+++ b/gmid.h
@@ -70,6 +70,9 @@ struct location {
X509_STORE *reqca;
int disable_log;
+ const char *dir;
+ int dirfd;
+
TAILQ_ENTRY(location) locations;
};
@@ -91,10 +94,8 @@ struct vhost {
const char *domain;
const char *cert;
const char *key;
- const char *dir;
const char *cgi;
const char *entrypoint;
- int dirfd;
TAILQ_ENTRY(vhost) vhosts;
@@ -234,6 +235,7 @@ struct cgireq {
time_t notafter;
size_t host_off;
+ size_t loc_off;
};
enum {