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”
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.