Hi all,
I got a flask server accepting only POST requests on
https://domain.com:13000/data
Can anyone help me redirect / proxy / map
https://domain.com:13000/data
to https://abc.domain.com subdomain?
https://domain.com:15000/data
to https://xyz.domain.com subdomain?
I tried:
if ($host = xyz.domain.com) {
return 301 https://xyz.domain.com:13000/data;
}
This redirects https://xyz.domain.com to https://xyz.domain.com:13000/data
but it doesn't include the 'POST' message.
I do not get a POST message in the Flask
server output like I used to.
data => nginx => https://xyz.domain.com => https://xyz.domain.com:13000/data
Thanks in advance.