我在 Lubuntu 21.10 上运行了 lighttpd 1.4.59。我的 lighttpd.conf 包含:
fastcgi.server = (
"/" => ((
"bin-path" => "/var/www/html/script.fcgi",
"socket" => "127.0.0.1:80",
"min-procs" => 1,
"max-procs" => 1,
"doc-root" => "/"
)))
仍然没有问题,并且“localhost”和“localhost/script.fcgi”都可以正常工作。但是,如果我将“"/" =>”更改为“"/foo" =>”,那么由于“404 Not found”代码,我将无法访问 /foo 路由。如何仅在用户在地址栏中输入“localhost/foo”时才提供对 script.fcgi 的访问权限?非常感谢。
答案1
"check-local" => "disable"