How does to error_page when this issue

Maxim Dounin mdounin at mdounin.ru
Thu Jun 28 13:47:19 UTC 2012


Hello!

On Wed, Jun 27, 2012 at 08:36:49PM -0400, defage wrote:

> some url like:  http://localhost.com/%u
> It will response http 400 status , and when generate this response
> ,nothing found  in error log or access log.
>
> how to config this issue error_page?
> 
> my config
> location / {
>     error_page   400 =/400;
> }
> 
> location /400 {
>     root   /path/some/path;
> }
> it don't work.

These errors are shown up in a default server on a listen socket 
in question, as virtual host isn't yet known when error happens.

The error_page should work, though you have to configure 
it in the default server as well.

Maxim Dounin



More information about the nginx mailing list