error_page broken in 0.4.5?
Bob Ippolito
bob at redivi.com
Tue Oct 3 06:27:59 MSD 2006
I just upgraded to 0.4.5, and it seems that error_page no longer works
correctly. If I specify "error_page 404 404.html;" then it will do a
Location redirect to 404.html, but if I specify "error_page
/404.html;" then I will just get the default nginx 404 page.
In 0.4.2 I could use "error_page /404.html;" and get the contents of
404.html (this is the documented behavior).
$ curl -I http://127.0.0.1/nothere
HTTP/1.1 404 Not Found
Server: nginx/0.4.5
Date: Tue, 03 Oct 2006 02:26:21 GMT
Content-Type: text/html
Content-Length: 168
Connection: keep-alive
$ curl -I http://127.0.0.1/nothere
HTTP/1.1 302 Moved Temporarily
Server: nginx/0.4.5
Date: Tue, 03 Oct 2006 02:26:50 GMT
Content-Type: text/html
Content-Length: 160
Connection: keep-alive
Location: 404.html
-bob
More information about the nginx
mailing list