This question might sound a bit odd to the people hanging out here, but i am just trying to start learning server side programming
Is it possible to run a python script directly in a Nginx server just by replacing
root /usr/share/nginx/html;
index index.py; // instead of index.html index.htm
I tried running the same, but no result. All i was trying is to get the post data of the request and print it on a web-page.
I have searched a bit on google and found how to run python script using uWSGI and Ngnix - link. I will defiantly go ahead and try this one, but it would be really nice, if some one can clear my doubt.
Thanks in advance.