aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-04-29 18:23:35 +0000
committerOmar Polo <op@omarpolo.com>2021-04-29 18:23:35 +0000
commitcc8c2901ad544d336374887451dc8c85a5ae1264 (patch)
tree46f42e9929fd44cf9bf94a9a2b6a81de2f72a517 /gmid.h
parent8e8b2e252c37a1e633c33ac923ab78c3f1e8ab31 (diff)
added ``alias'' option to define hostname aliases for a server
Diffstat (limited to 'gmid.h')
-rw-r--r--gmid.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gmid.h b/gmid.h
index f29c210..5eec8af 100644
--- a/gmid.h
+++ b/gmid.h
@@ -80,6 +80,12 @@ struct envlist {
TAILQ_ENTRY(envlist) envs;
};
+TAILQ_HEAD(aliashead, alist);
+struct alist {
+ char *alias;
+ TAILQ_ENTRY(alist) aliases;
+};
+
extern TAILQ_HEAD(vhosthead, vhost) hosts;
struct vhost {
const char *domain;
@@ -98,6 +104,7 @@ struct vhost {
struct lochead locations;
struct envhead env;
+ struct aliashead aliases;
};
struct etm { /* extension to mime */