Redirect / Proxy / Map subdomain to domain with port number
December 31, 2021 03:46PM
Hi all,

I got a flask server accepting only POST requests on

Can anyone help me redirect / proxy / map
to subdomain?
to subdomain?

I tried:
if ($host = {
return 301;

This redirects to
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 => =>

Thanks in advance.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready