Hello!
On Sat, May 11, 2013 at 09:53:47PM -0400, dktp1 wrote:
> I am trying to read if a specific value is set (passed) as a POST using
> request_body.
>
> What I am trying to do is:
>
> server {
> ..
> if ($request_body ~ "API-value-Iwanttocheck") {
> set $my_api "TRUE";
> }
>
> And
I am trying to read if a specific value is set (passed) as a POST using
request_body.
What I am trying to do is:
server {
..
if ($request_body ~ "API-value-Iwanttocheck") {
set $my_api "TRUE";
}
And later on pass to the backend server:
location / {
proxy_pass http://backend:80;