Skip to content

Instantly share code, notes, and snippets.

/answer.md Secret

Created May 14, 2015 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/34bbba2ec99d119902bf to your computer and use it in GitHub Desktop.
Save anonymous/34bbba2ec99d119902bf to your computer and use it in GitHub Desktop.

I see a 404 status code when I request your link: http://greatwallprojects.com/pingtest/

Please make sure that your application which runs on port 8081 responds to the request

GET/1.1 /pingtest/

In other words check if your app has an implementation for the /pingtest/ path.

You can always check with curl what the direct answer from your node application is:

curl -i http://127.0.0.1:8081

Compare it with what you get from nginx.

While debugging nginx, looking at the logs is always helpful. Watch them in another console window with:

tail -f -n0 /var/log/nginx/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment