error_page

Igor Sysoev igor at sysoev.ru
Wed Oct 20 21:37:10 MSD 2010


On Wed, Oct 20, 2010 at 07:26:00PM +0200, Witold Filipczyk wrote:

> > With this configuration
> > 
> >  error_page  404 /404.html;
> >  locaiton = /404.html {
> >      root /path/to/page;
> >  }
> > 
> > you will get 404 code with /404.html body for this request:
> > http://blabla1.com/non-existant.html
> > 
> > and 200 code with /404.html body for this request:
> > http://blabla1.com/404.html
> 
> There is:
> server {
>   server_name _;
>   error_page 404 /404.html;
>   location = /404.html {
>     root /blabla;
>   }
> }
> 
> blabla1.com goes into _;

And where is question ?


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx-devel mailing list