error_page
witekfl Gazeta.pl
witekfl at gazeta.pl
Wed Oct 20 19:10:59 MSD 2010
Hi,
probably better place for these questions would be nginx-users, but I ask
here.
I want to serve static pages as error codes but without changing the error
code.
Now if:
error_page 404 http://blablabla.com/404.html
There is 302 and next 200 OK
I want 404.
error_page 404 /404.html
it works, but:
if there is:
location = /404.html {
internal;
}
then cannot be a normal location
location = /404.html {
},
so request such as http://blabla1.com/404.html won't work.
error_page 404 @404;
location @404 {
root /blabla;
index 404.html;
}
doesn't work either
There must be some way to achieve it.
How?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-devel/attachments/20101020/4576906c/attachment.html>
More information about the nginx-devel
mailing list