Answer the question
In order to leave comments, you need to log in
.netcore nginx error 500?
There is a .net core webapi standard project created by the wizard.
locally everything works
when uploaded to the server, but not quite ok
/api/values - works, returns ["value1","value2"]
/api/values/1 - DOES NOT work, returns error 500
according to nginx logs:
2019/04/ 17 02:44:20 [error] 6019#6019: *1 connect() failed (111: Connection refused) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: _, request: "GET /api /values/1 HTTP/1.1", upstream: " [::1]:5000/api/values/1 ", host: "xxx.xxx.xxx.xxx"
I guess you need to somehow configure nginx, but where and how Don't know.
Please help...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question