The Perfect SpamSnake - Ubuntu Jeos 10.04 - Nginx, uWSGI & Baruwa
Hi All,
wondering if any of you can give me a hand as im slowly frying my brain with this. My problem is as follows, I have setup MailScanner no problems, works fine, its just the Nginx, uWsgi and baruwa combination that are giving me headaches. I know im not using the prescribed 10.10 but it wasn't an option and I quite like LTS. Basically I have setup as per the how-to (associated conf and ini files below) and all I get at the moment is:
uWSGI Error
wsgi application not found
/etc/uwsgi/uwsgi-python2.6/baruwa.ini:
[uwsgi]
socket = /var/run/uwsgi/uwsgi-python2.6/baruwa/socket
master = true
processes = 2
env = DJANGO_SETTINGS_MODULE=baruwa.settings
module = django.core.handlers.wsgi:WSGIHandler()
/etc/nginx/sites-available/baruwa.conf:
server {
listen 80;
server_name exam.example.com;
root /usr/share/pyshared/baruwa;
#main access log
access_log /var/log/nginx/access.log;
#main error log
error_log /var/log/nginx/error.log;
location /static {
root /usr/share/pyshared/baruwa/static/;
}
# static resources
location ~* ^.+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar |bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp| rtf|js)$
{
expires 30d;
break;
}
location / {
uwsgi_pass unix:///var/run/uwsgi/uwsgi-python2.6/baruwa/socket;
include uwsgi_params;
}
}
One thing that is obvious is the socket, before everyone shouts at once a
"ls /var/run/uwsgi/uwsgi-python2.6/baruwa" returns:
pid socket
Hence the change from 'baruwa.sock' to 'socket'.
Please let me know if there is anymore information you need or if you would like me to test anything.
Thanks Muchly,
Drex
Last edited by Drex56; 13th December 2010 at 11:56.
|
Recent comments
8 hours 29 min ago
9 hours 29 min ago
13 hours 16 min ago
14 hours 30 min ago
18 hours 6 min ago
1 day 1 hour ago
1 day 10 hours ago
1 day 11 hours ago
2 days 2 hours ago
2 days 5 hours ago