Show all posts by user
Discussions in German
Page 1 of 1 Pages: 1
Results 1 - 6 of 6
Is there any possibility to change the method before the 400 happens?
by
benvandamme
-
Other discussion
Thats what I did.
The Error-Log says:
3 client sent invalid method while reading client request line, client: 127.0.0.1, server: localhost, request: "0 /"
And Curl:
HTTP/1.1 400 Bad Request
Server: nginx/1.9.15
Date: Wed, 04 May 2016 09:38:30 GMT
Content-Type: text/html
Content-Length: 173
Connection: close
<html>
<head><title>400 Bad Request</title
by
benvandamme
-
Other discussion
Hello,
i tried the following config:
add_header XX-method: $request_method;
add_header bla-method: $bla_method;
map $request_method $bla_method {
default $request_method;
0 POST;
BLA POST;
}
server {
listen 80 default;
server_name localhost;
location / {
proxy_method $bla_method;
proxy_pass http://<
by
benvandamme
-
Other discussion
Thank you for your reply.
I would like to try this but i have no idea how to do this without php.
My setup comes without php. It is a simple reverse proxy.
Is it possible to pass this to the proxy_pass-connection?
by
benvandamme
-
Other discussion
Hello,
is it possible to override the $request_method?
I have the problem that a well known client tries to place a request with method "0". This has its roots in a bug that would take long time to fix.
Is it possible to do something like
if ($request_method = 0){
set $request_method POST;
}
I did a quick try on this but i qot an error that the variable "$request_method
by
benvandamme
-
Other discussion
Hallo,
aktuell habe ich das Problem, dass ich von bekannter Quelle auf Grund eines Bugs Anfragen mit der Methode 0 bekomme.
Jetzt wollte ich diese mit folgender Direktive überschreiben.
if ( $request_method = 0 ) {
set $request_method POST;
}
Dies führt aber zu dem Fehler:
the duplicate "request_method" variable in ....
Gibt es irgendeine andere Möglichkeit d
by
benvandamme
-
German Forum