Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

status code

#77

First, I want congratulate you for have made a fast server. I am glad to use Thin with nginx instead of mongrel :)

A short example is more relevant for explain my problem...

GET /test HTTP/1.0

HTTP/1.1 200 OK
Server: nginx/0.7.1
Date: Sun, 20 Jul 2008 12:15:07 GMT
Content-Type: text/html
Connection: close

Status: 500 Internal Server Error
Content-Type: text/html

<html><body><h1>500 Internal Server Error</h1></body></html>

The page is returned with status 200, it should be 500. I think it's a Thin problem because when I look at the Nginx debug log:

2008/07/20 14:17:34 [debug] 27541#0: *239 http proxy status 200 "200 OK"
2008/07/20 14:17:34 [debug] 27541#0: *239 http proxy header: "Content-Type: text/html"
2008/07/20 14:17:34 [debug] 27541#0: *239 http proxy header: "Connection: close"
2008/07/20 14:17:34 [debug] 27541#0: *239 http proxy header: "Server: thin 0.8.2 codename Double Margarita"
2008/07/20 14:17:34 [debug] 27541#0: *239 http proxy header done

Thanks

Vincent

Reported by Vincent · July 22nd, 2008 @ 10:05 PM

State: hold
Milestone: Future
Assigned to: macournoyer macournoyer

Activity

  1. macournoyer
    macournoyer
    • Tag set to header, http

    Looks like some headers are ending up in your body. Are you using it from Rails or something else?

    July 22nd, 2008 @ 10:06 PM

  2. Michael Klishin (antares)
    Michael Klishin (antares)

    Please provide code of action that causes it and try with nginx 0.6 (stable) first. It's hard to write a spec from what's given here.

    August 8th, 2008 @ 12:43 AM

  3. macournoyer
    macournoyer

    please run w/ --trace and paste output so we can see the raw request.

    August 8th, 2008 @ 09:38 AM

  4. macournoyer
    macournoyer
    • State changed from new to hold

    pls provide more info to reopen

    I need: * thin.log after running w/ --trace * code of Rails action causing problem

    September 1st, 2008 @ 10:42 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.