Welcome! Log In Create A New Profile

Advanced

Re: 400 bad request with the other method such as info,list and lock

Maxim Dounin
August 15, 2012 07:52AM
Hello!

On Tue, Aug 14, 2012 at 07:10:05AM -0400, kj wrote:

> Hello Nginx team,
>
> I am trying to install our solution with Nginx as a reverse proxy. And I am
> having some problem shown as below.
>
> 172.30.2.84 - - [14/Aug/2012:19:51:17 +0900] "GET /api/local/test.doc/info
> HTTP/1.1" 400 971 "-"
> 172.30.2.84 - - [14/Aug/2012:19:51:17 +0900] "GET /api/local/info HTTP/1.1"
> 400 971 "-"
> 172.30.2.84 - - [14/Aug/2012:19:51:17 +0900] "GET /api/local/info HTTP/1.1"
> 400 971 "-"
> 172.30.2.84 - - [14/Aug/2012:19:51:17 +0900] "GET /api/local/info HTTP/1.1"
> 400 971 "-"
> 172.30.2.84 - - [14/Aug/2012:19:51:17 +0900] "GET /api/local/test.doc/info
> HTTP/1.1" 400 971 "-"
> 172.30.2.84 - - [14/Aug/2012:19:51:17 +0900] "GET /api/local/list HTTP/1.1"
> 400 971 "-"
> 172.30.2.84 - - [14/Aug/2012:19:51:17 +0900] "GET /api/local/info HTTP/1.1"
> 400 971 "-"
>
> As you can see, 400 bad request error occurred. I have already experienced
> that I used to handle pound reverse proxy server with our solution.
> Pound server has xhttp option that allow WEBDAV method from outside through
> itself. I could solve similar issue under pound server by using xhttp
> option. below description quoted from pound man page.

All syntactically correct methods are allowed by nginx by default
when proxying. If method isn't allowed for a particular resource,
nginx will return 405 (Method Not Allowed), not 400 (Bad Request).
The above errors aren't result of method problems for sure, as you
can see from request line logged the method used was GET.

To find out the reason for errors in question take a look at error
log.

And you may also want to make sure errors are actually returned
by nginx, not by your backend. The size logged (971) suggests
it's at least not nginx standard error page.

Maxim Dounin

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

400 bad request with the other method such as info,list and lock

kj August 14, 2012 07:10AM

Re: 400 bad request with the other method such as info,list and lock

Maxim Dounin August 15, 2012 07:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 170
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