Quantcast
Channel: Nginx Forum - Other discussion
Viewing all articles
Browse latest Browse all 972

Re: Override HTTP-Method

$
0
0
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://<URL>:8080;
}
}

But it does not work. The problem persists.

Kind Regards,

Benjamin

Viewing all articles
Browse latest Browse all 972

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>