Welcome! Log In Create A New Profile

Advanced

Re: How does to error_page when this issue

Maxim Dounin
June 28, 2012 09:48AM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How does to error_page when this issue

defage June 27, 2012 08:36PM

Re: How does to error_page when this issue

Reinis Rozitis June 28, 2012 06:32AM

Re: How does to error_page when this issue

Maxim Dounin June 28, 2012 09:48AM

Re: How does to error_page when this issue

defage June 28, 2012 10:17PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 196
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready