diff options
author | Omar Polo <op@omarpolo.com> | 2021-02-06 18:28:43 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-02-06 18:28:43 +0000 |
commit | e3ddf390950bf51d0c6c9cc6b931879006936e4c (patch) | |
tree | b5c8af6e5209006b99b4a65f222bbf169483c57e /parse.y | |
parent | afc025ff600c11e5cbe8794b944b560492290cce (diff) |
add the ``entrypoint'' option
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 ; |