error_page

Witold Filipczyk witekfl001 at gmail.com
Wed Oct 20 21:26:00 MSD 2010


> 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 _;



More information about the nginx-devel mailing list