Uwsgi – Socket file or URL – A server stack is the collection of software that forms the operational infrastructure on a given machine. In a computing context, a stack is an ordered pile. A server stack is one type of solution stack — an ordered selection of software that makes it possible to complete a particular task. Like in this post about Uwsgi – Socket file or URL was one problem in server stack that need for a solution. Below are some tips in manage your linux server when you find problem about linux, debian, uwsgi, socket, .
I was installing UWSGI and it looks like for the socket I can specify either a URL and port or instead I can specify a socket location file.
I was wondering if anyone can tell me what the difference is between these two, and if one is preferable to the other.
You can run uwsgi to listen to a TCP/IP port, for example uwsgi –http :80 , if you change it to listen to a Unix socket (for ex: uwsgi –socket :8000 ) then this is local only, no web service (TCP/IP) is exposed to the Internet and you have to put a web server like nginx in front of uwsgi as ‘proxy’ that can get the http requests from the outside world (see https://gist.github.com/evildmp/3094281 for a django example instead of Flask)