How does to error_page when this issue

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.

Posted at Nginx Forum:

how to config this issue error_page?

Does http://localhost/400 show correctly?

rr

Hello!

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

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 D.

Thanks your reply. Working properly now

Posted at Nginx Forum: