0

I have facing issue with nginx server when deploying asp.net core application actually it always redirect it to localhost but I pass the proxy_pass http://127.0.0.1:5000 on nginx config file.

enter image description here

enter image description here

1 Answer 1

1

you should try this

location / {
      # http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver
      resolver 127.0.0.1 valid=30s ipv6=off;
      # http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver_timeout
      # give up and response error 
      resolver_timeout 5s;
      proxy_pass http://127.0.0.1:5000; 
}
Sign up to request clarification or add additional context in comments.

1 Comment

Yeah I try this but this also not working, don't know what is the problem with my nginx config. still getting This site can’t be reached.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.