Welcome! Log In Create A New Profile

Advanced

Re: Why does this URL result in a 400 (Bad Request) error?

John Moore
November 04, 2009 08:54AM
John Moore wrote:
> Igor Sysoev wrote:
>>
>>
>> Have this resolved Tomcat issue ? It's really strange that Tomcat
>> does not
>> support the encoded URL.
>>
>>
> It seems to have done, yes. It's had a slight side-effect, though, in
> that I'm now getting a 404 error from nginx on a particular page,
> which it should be proxying. How would the addition of the forward
> slash to http://backend cause this, and what do I need to do to
> compensate?
>
Ignore this, it was simply because another block was also using the
proxy module and I hadn't updated it. It did confirm, though, that the
proxy_pass directive is very fussy about where it is. In this block, if
I append an / to the http://backend, it gives the same error as reported
earlier ("proxy_pass" may not have URI part in location given by regular
expression, or inside named location, or inside the "if" statement, or
inside the "limit_except" block in /etc/nginx/nginx.conf:98):


location ~
/(viewServers|addServer|removeServer|reloadServers|clearPageCache|flushPageCache|pageCacheStats).htm$
{
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/users;
proxy_pass http://backend;
include /etc/nginx/proxy.conf;
gzip on;
gzip_types text/javascript text/css application/x-javascript;

}

As it happens, I don't actually need the encoding/decoding working for
these pages, so I can leave it as it is above.

JM
Subject Author Posted

Why does this URL result in a 400 (Bad Request) error?

John Moore November 03, 2009 03:14PM

Re: Why does this URL result in a 400 (Bad Request) error?

Igor Sysoev November 03, 2009 04:18PM

Re: Why does this URL result in a 400 (Bad Request) error?

John Moore November 03, 2009 04:50PM

Re: Why does this URL result in a 400 (Bad Request) error?

Igor Sysoev November 03, 2009 04:56PM

Re: Why does this URL result in a 400 (Bad Request) error?

John Moore November 03, 2009 05:02PM

Re: Why does this URL result in a 400 (Bad Request) error?

Igor Sysoev November 03, 2009 05:20PM

Re: Why does this URL result in a 400 (Bad Request) error?

John Moore November 04, 2009 04:48AM

Re: Why does this URL result in a 400 (Bad Request) error?

Igor Sysoev November 04, 2009 05:00AM

Re: Why does this URL result in a 400 (Bad Request) error?

John Moore November 04, 2009 05:20AM

Re: Why does this URL result in a 400 (Bad Request) error?

Igor Sysoev November 04, 2009 05:30AM

Re: Why does this URL result in a 400 (Bad Request) error?

John Moore November 04, 2009 05:58AM

Re: Why does this URL result in a 400 (Bad Request) error?

Igor Sysoev November 04, 2009 06:18AM

Re: Why does this URL result in a 400 (Bad Request) error?

John Moore November 04, 2009 06:50AM

Re: Why does this URL result in a 400 (Bad Request) error?

Igor Sysoev November 04, 2009 07:00AM

Re: Why does this URL result in a 400 (Bad Request) error?

John Moore November 04, 2009 07:20AM

Re: Why does this URL result in a 400 (Bad Request) error?

Igor Sysoev November 04, 2009 07:38AM

Re: Why does this URL result in a 400 (Bad Request) error?

John Moore November 04, 2009 07:30AM

Re: Why does this URL result in a 400 (Bad Request) error?

Igor Sysoev November 04, 2009 07:38AM

Re: Why does this URL result in a 400 (Bad Request) error?

John Moore November 04, 2009 08:18AM

Re: Why does this URL result in a 400 (Bad Request) error?

Igor Sysoev November 04, 2009 08:44AM

Re: Why does this URL result in a 400 (Bad Request) error?

John Moore November 04, 2009 08:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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