Score:0

Lighttpd mod_fastcgi respond only if conf file is using root url pattern

us flag

I have running lighttpd 1.4.59 on Lubuntu 21.10. My lighttpd.conf contains:

fastcgi.server = ( 
"/" => ((
                "bin-path" => "/var/www/html/script.fcgi",
                "socket" => "127.0.0.1:80",
                "min-procs" => 1,
                "max-procs" => 1,
                "doc-root" => "/"
            )))

There are still no problems and both 'localhost' and 'localhost/script.fcgi' are working. But if I change '"/" =>' to '"/foo" =>' then I can not get access to the /foo route because of '404 Not found' code. How to provide access to script.fcgi only if user type 'localhost/foo' in an address bar? Thanks a lot.

Score:0
cn flag

"check-local" => "disable"

https://wiki.lighttpd.net/Docs_ModFastCGI

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.