For example, accessing a bad URL (which executes my customized
ErrorController's document function to get a pretty error page) through
flup_scgi/lighttpd results in a response like:
HTTP/1.1 200 OK
Connection: close
Status: 404 Not Found
[.... etc .....]
While accessing the same URL through PasteScript#wsgiutils results in a
response like:
HTTP/1.0 404 Not Found
Server: SimpleHTTP/0.6 Python/2.4.2
Date: Mon, 14 Aug 2006 16:40:49 GMT
[.... etc ....]
The status code is clearly wrong under flup, although I'm unsure as to
the origin of the problem. Thoughts?
Thanks,
Chas Emerick
ceme...@snowtide.com
The issue was in our lighttpd config. This line was catching the 404's
(the remains of a RoR fcgi config):
server.error-handler-404 = "/"
What I still don't understand is why 404's simply didn't redirect to
"/" as specified in this rule -- the error documents were still
flowing, they just had their status codes munged. I'm glad to leave
that question unanswered.
- Chas