Nginx Reverse Proxy

Hello All;

When I doing curl I can’t take the right answer from dotnet. Why it can happen can you help me with it?

ubuntu@:/var/log/nginx$ curl http://localhost:5000/v1/settings/ping ubuntu@:/var/log/nginx$

access log

GET /v1/settings/ping HTTP/1.1" 307 0 “-” “ELB-HealthChecker/2.0”

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

In addition to what KFSys already mentioned, I could suggest adding the -v argument to the curl command:

curl -v http://localhost:5000/v1/settings/ping

Also, note that when accessing the service directly on port 5000, it does not go through Nginx, so it is expected that you don’t see anything in the Nginx access logs.

Regards, Bobby

Hi @zekakgun,

We’ll need a bit more information on the topic to fully help you out. Can you please post your NGINX configuration file so that we can see everything is configured properly?

Additionally, I can see you are trying localhost, having said that, can you please try with your domain or your droplet’s IP address as well?

One last question, what should be the expected outcome of the command?

Looking forward to your reply!

Regards, KFSys