How to use UNIX domain sockets behind Apache / mod_proxy_uwsgi?

Solution 1:

I had a similar setup for a Django application and resolved this error message by moving the location of the socket file from /tmp to /var/lib/uwsgi. Make sure that /var/lib/uwsgi is owned by the same user and group that your web server and uWSGI run under so that uWSGI can create the socket file.