I deployed apirest and others service need it login.... last days work fine because i did use http, today install https and all request post/get work fine with https but y i try it call same endpoint redirect not work.
My objective is call transparent way when use http://.... or https://...
i researched about this case and all ppl talk about 307/308 but not work for me
nginx - sites-enabled/default
server { listen 80; listen [::]:80; server_name mydomain.com; return 307 https://$server_name$request_uri;}
in this case i tried it with 307 and 308 but not worki see that access.log, nginx redirect url with method GET when my request is with POST
- my nginx version is 1.18
- my domain is register in cloudflare.... i have a doubts about if this is the problem
- restart service and restart server.... and i have same error
pls any idea?