aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-07-23 19:04:37 +0000
committerOmar Polo <op@omarpolo.com>2023-07-23 19:04:37 +0000
commit6a8387e5f54a4d6db07aa2f3c7046f618b82aac2 (patch)
tree9c097e4ca7ea3a9b98c465d388ce13aad7679e01 /parse.y
parentfdd67729b45c7073be9ea1720cbadbaae8f0d112 (diff)
add `fastcgi off' to forceful skip fastcgi for a route
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 2dcb4bc..c5f535f 100644
--- a/parse.y
+++ b/parse.y
@@ -491,6 +491,10 @@ locopt : AUTO INDEX bool { loc->auto_index = $3 ? 1 : -1; }
fastcgi : FASTCGI '{' optnl fastcgiopts '}'
| FASTCGI fastcgiopt
+ | FASTCGI OFF {
+ loc->fcgi = -1;
+ loc->nofcgi = 1;
+ }
| FASTCGI string {
yywarn("`fastcgi path' is deprecated. "
"Please use `fastcgi socket path' instead.");