Welcome! Log In Create A New Profile

Advanced

Re: help allow post method url

Aleksandar Lazic
July 11, 2019 10:02AM
Hi.

Am 11.07.2019 um 14:41 schrieb tuank19:
> Hi all,
>
> I have a static website ( html ) with domain : abc.name.com , in html file
> have form and use post method to laravel cms with domain : xyz.qwe.com.
> Now i want config only domain abc.name.con post data to my cms laravel.
> what can i do in nginx ?
> thanks

I would try it with maps.
https://nginx.org/en/docs/http/ngx_http_map_module.html

```code
# untested
map $request_method $dest_url {
default abc.name.com;
POST xyz.qwe.com;
}

location / {
proxy_pass $dest_url;
}
```

Hth
Aleks

> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,284822,284822#msg-284822
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

help allow post method url

tuank19 July 11, 2019 08:41AM

Re: help allow post method url

Aleksandar Lazic July 11, 2019 10:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 148
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready