View Single Post
Old 3rd December 2010, 00:39
tahussle tahussle is offline
Junior Member
Join Date: Jun 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default hi thanks for the reply

this is the content of /etc/uwsgi/uwsgi-python2.6/baruwa.ini

socket = /var/run/baruwa.sock
master = true
processes = 2
env = DJANGO_SETTINGS_MODULE=baruwa.settings
module = django.core.handlers.wsgi:WSGIHandler()

and on running the restart same problem
spamsnake:/etc/nginx/sites-enabled# /etc/init.d/uwsgi-python2.6 restart
* Restarting WSGI server(s) uwsgi-python2.6 [ OK ]

**@spamsnake:/etc/nginx/sites-enabled# /etc/init.d/nginx restart
Restarting nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
configuration file /etc/nginx/nginx.conf test is successful

and this is the baruwa.conf file in the nginx sites-enabled folder

server {
listen 80;
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;
location / {
uwsgi_pass unix:///var/run/baruwa.sock;
include uwsgi_params;
Reply With Quote