aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-02-06 18:28:43 +0000
committerOmar Polo <op@omarpolo.com>2021-02-06 18:28:43 +0000
commite3ddf390950bf51d0c6c9cc6b931879006936e4c (patch)
treeb5c8af6e5209006b99b4a65f222bbf169483c57e /parse.y
parentafc025ff600c11e5cbe8794b944b560492290cce (diff)
add the ``entrypoint'' option
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y7
1 files changed, 7 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 77a3558..c89ed5d 100644
--- a/parse.y
+++ b/parse.y
@@ -125,6 +125,13 @@ servopt : TCERT TSTRING { host->cert = ensure_absolute_path($2); }
memmove($2, $2+1, strlen($2));
host->cgi = $2;
}
+ | TENTRYPOINT TSTRING {
+ if (host->entrypoint != NULL)
+ yyerror("`entrypoint' specified more than once");
+ while (*$2 == '/')
+ memmove($2, $2+1, strlen($2));
+ host->entrypoint = $2;
+ }
| locopt
;