Hello, I'm newbie uwsgi.
uwsgi --version :1.9.17.1
nginx --version :1.4.7-3.9.
I want to use uwsgi on unix domain socket with nginx.
I try to this
== nginx.conf ==
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
# location / {
# root /srv/www/htdocs/;
# index index.html index.htm;
# }
location / {
root /srv/www/htdocs/;
index index.html index.htm;
include uwsgi_params;
uwsgi_pass unix:///tmp/aaa.sock;
#uwsgi_pass 127.0.0.1:3031;
}
==========================
== uwsgi.ini ==
[uwsgi]
plugins = python
#socket=127.0.0.1:3031
socket=/tmp/aaa.sock
wsgi-file = /home/aaa/uwsgistatus.py
processes = 10
uid = nginx
gid = nginx
master = true
===========================
conntcto to "http://localhost" use browser
Erro raise.
---- /var/log/nginx/error.log -----
connect() to unix:///tmp/aaa.sock failed (2: No such file or
directory) while connecting to upstream, client: 127.0.0.1, server:
localhost, request: "GET / HTTP/1.1", upstream:
"uwsgi://unix:///tmp/aaa.sock:", host: "localhost"
------------------------------------------
in case socket = 127.0.0.1:3031 , always no error.
How Can I use unix domain socket ?
Thank you
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi