Welcome! Log In Create A New Profile

Advanced

HTTP status code bug?

February 04, 2010 03:53PM
Hello,

The browser hits a non-existing file. An "error_page" points
to a fastcgi-application. The fastcgi thinks this is not an error
and explicit sets: "Status: 200" or "Status: 302", ...

One would expect that the fastcgi can overwrite the status-code.

E.g.: http://www.domain.name/media/id12345
nginx returns 404, regardless of the fastcgi.

[code]
http {
server {
listen 80;
server_name www.domain.name;
error_page 404 /index.cgi;
location / {
index index.cgi;
fastcgi_pass unix:/var/run/fastcgi/dispatch.sock;
....;
}
location ^~ /media/ {
alias /var/www/media/;
}
}
}
[/code]

Thanks
Marcus
Subject Author Posted

HTTP status code bug?

double February 04, 2010 03:53PM

Re: HTTP status code bug?

Maxim Dounin February 04, 2010 04:52PM

Re: HTTP status code bug?

double February 04, 2010 05:09PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 274
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready