svn sources, revision 1270.
originally from http://forum.lighttpd.net/topic/1310
Posted by ethaniel (Guest) on 27.08.2006 19:29
I downloaded the latest lighttpd from SVN. it starts and works ok. but when it goes to php scripts it's acting strange. it performs scripts on some of the sites. on the others it spits out an error:
connections.c.239: (trace) no status, setting 403
Posted by Vyacheslav Chernousov on 27.08.2006 23:40
There are 2 ways to solve this bug (yes, it's BUG):
1. insert everywhere in your scripts:
header('Status: 200');
2. or apply this patch to lighttpd sources:
svn diff connections.c
Index: connections.c
===================================================================
--- connections.c (revision 1270)
+++ connections.c (working copy)
@@ -236,8 +236,8 @@
}
if (con->http_status == 0) {
- TRACE("%s", "no status, setting 403");
- con->http_status = 403;
+ TRACE("%s", "no status, setting 200");
+ con->http_status = 200;
}
switch(con->http_status) {
I know that this patch is not problem **solving**, but just bug **bypass**. But at least it's temporarily solution for us.