Home > OS >  GET Request is not working once subdomain is enabled in Nginx
GET Request is not working once subdomain is enabled in Nginx

Time:02-20

By enabling sub domain to my public IP am not getting the GET respone from my backend.

In my local machine once i type the URL http://localhost:3001/objects?design=ficco-desings&category=formals&type=

We are getting the respone in JSON format. In my local machine it is working as expected.

Once we deployed in production(AWS), we configured subdomain as api.inzack.com in Nginx file

The error we are getting is attached

We are using rewrite tag in Nginx conf file to send the GET request parameters.

pls suggest where am making the mistake

CodePudding user response:

location ~ ^/objects/ {
  proxy_pass http://0.0.0.0:3001/$uri$is_args$args;
}
  • Related