aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-04-28 12:43:17 +0000
committerOmar Polo <op@omarpolo.com>2021-04-28 12:43:17 +0000
commit9cc630aa63cfd22553912b5a1fc41a71776cb272 (patch)
treeb1fa171477f23a869acdc374797a91ff638bdd78 /gmid.h
parente6ca8eb1561ade7484a0249ffd1234cdf94e2562 (diff)
added ``env'' option to define environment vars for CGI scripts
Diffstat (limited to 'gmid.h')
-rw-r--r--gmid.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gmid.h b/gmid.h
index 6f4223e..f29c210 100644
--- a/gmid.h
+++ b/gmid.h
@@ -73,6 +73,13 @@ struct location {
TAILQ_ENTRY(location) locations;
};
+TAILQ_HEAD(envhead, envlist);
+struct envlist {
+ char *name;
+ char *value;
+ TAILQ_ENTRY(envlist) envs;
+};
+
extern TAILQ_HEAD(vhosthead, vhost) hosts;
struct vhost {
const char *domain;
@@ -89,6 +96,8 @@ struct vhost {
* settings for the vhost, then follows the "real" location
* rules as specified in the configuration. */
struct lochead locations;
+
+ struct envhead env;
};
struct etm { /* extension to mime */