Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
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.
On Trying : curl ‘http://localhost:8000/py/api/main’ -s -L -v -o /dev/null Response is :
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8000 (#0)
> GET /py/merchant/upi/callBackP2MRes?meRes="nipun" HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:8000
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 404 NOT FOUND
< Date: Mon, 10 Jul 2017 12:56:22 GMT
< Server: WSGIServer/0.1 Python/2.7.6
< X-Frame-Options: SAMEORIGIN
< Content-Type: text/html
<
{ [data not shown]
* Closing connection 0
The above one must give 404 because nginx server handles all the ‘/py/’ type of requests and pass the rest on to the gunicorn server, so therefore I tried the below one.
On Trying : curl ‘http://localhost:8000/api/main/’ -s -L -v -o /dev/null
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8000 (#0)
> GET /api/main/ HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:8000
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Date: Mon, 10 Jul 2017 12:56:50 GMT
< Server: WSGIServer/0.1 Python/2.7.6
< Vary: Accept, Cookie
< X-Frame-Options: SAMEORIGIN
< Content-Type: application/json
< Allow: GET, POST, HEAD, OPTIONS
<
{ [data not shown]
* Closing connection 0
@nipun59 What are you getting, when you run this?
curl 'http://localhost:8000/py/api/main' -s -L -v -o /dev/null
Hi @nipun59
Make sure there’s no spaces between the last character and the semi-colon.
And can you share the /etc/nginx/proxy_params ?