Ticket #1326 (new defect)

Opened 10 months ago

lighttpd.conf logic does not work as expected.

Reported by: EvanCarroll Assigned to: jan
Priority: normal Milestone: 1.4.20
Component: core Version: 1.4.15
Severity: normal Keywords: fastcgi.conf syntax confusing illogical irrational nonsense
Cc: Blocking:
Need Feedback: 1

Description

The logic in lighttpd is totally borked 1.4.14 - 1.4.16. (versions i've tried) It is entirely too difficult to get the job done!

All I want to do is have one directory addressed by /git, served statically, outside of my fastcgi handler. I've come to the conclusion it can not be done by bruteforcing every possible combination of conditional, alias.* rewrite.* and document-root. Furthermore, the fastcgi 'else' is the most ridiculous syntax ever -- else in *every* language does not take a conditional, only /else? ?if/ and the fact that neither the if, nor the negation of the if can be triggered in some situations makes this all the less logical. So the syntax IF 1 {} else IF NOT 1 {} does not trigger in fastcgi. It is logically incorrect.

For instance observe the attached file : 1.conf and 2.conf, in 1.conf the path '/' returns 404, while in 2.conf, the path returns a 200 and gets executec by fastcgi.

The examples of this go on forever, in that same file: 1.conf '/git' serves me my fastcgi handler source, while '/git/subdir' returns a 404.

I came to lighty because I got my apps working in fastcgi, and I was sick of apache2-confs, I think the best route to go would be to RFC this and make sure the confs deliver the syntax that the users find the most intuitive. Maybe add a trac page asking users to submit what didn't work for them so we can discern patters about how things should work.

Attachments

1.conf (0.7 kB) - added by EvanCarroll on 08/25/2007 11:55:03 PM.
2.conf (0.5 kB) - added by EvanCarroll on 08/25/2007 11:55:34 PM.

Change History

08/25/2007 11:55:03 PM changed by EvanCarroll

  • attachment 1.conf added.

08/25/2007 11:55:34 PM changed by EvanCarroll

  • attachment 2.conf added.

Add/Change #1326 (lighttpd.conf logic does not work as expected.)




Change Properties