help allow post method url
Aleksandar Lazic
al-nginx at none.at
Thu Jul 11 14:00:46 UTC 2019
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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
More information about the nginx
mailing list