diff options
author | Omar Polo <op@omarpolo.com> | 2021-04-28 12:43:17 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-04-28 12:43:17 +0000 |
commit | 9cc630aa63cfd22553912b5a1fc41a71776cb272 (patch) | |
tree | b1fa171477f23a869acdc374797a91ff638bdd78 /gmid.h | |
parent | e6ca8eb1561ade7484a0249ffd1234cdf94e2562 (diff) |
added ``env'' option to define environment vars for CGI scripts
Diffstat (limited to 'gmid.h')
-rw-r--r-- | gmid.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 */ |