Hello Friends,

I have configured a spamsnake as mentioned at 
http://www.howtoforge.com/the-perfect-spamsnake-ubuntu-jeos-12.04-lts-precise-pangolin

Things are working fine as far as I can tell at the moment but when I click a 
message for preview, it throws an error.
The /etc/nginx/sites-available/baruwa.conf is as follows:

---------------------------------------------------------------------------------------------------
server {
listen 80;
server_name hidden.com;
root /usr/share/pyshared/baruwa;
autoindex on;
access_log /var/log/nginx/access.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/app/baruwa/socket;
   include uwsgi_params;
   }
}
---------------------------------------------------------------------------------------------------

The error on browser is as follows:

---------------------------------------------------------------------------------------------------
wsgi.multiprocess
True

HTTP_REFERER
'http://127.0.0.1/messages/view/CB410161013.A6C96/'

SCRIPT_NAME
u''

REQUEST_METHOD
'GET'

PATH_INFO
u'/messages/preview/CB410161013.A6C96/'

SERVER_PROTOCOL
'HTTP/1.1'

QUERY_STRING
''

CONTENT_LENGTH
''

HTTP_USER_AGENT
'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:32.0) Gecko/20100101 Firefox/32.0'

HTTP_CONNECTION
'keep-alive'

HTTP_COOKIE
'csrftoken=70532118880ef873168b4aa3c5fd9b84; 
sessionid=4df335fb3c65d9a7ee98f4b91dfd9974'

SERVER_NAME
'hidden.com'

REMOTE_ADDR
'127.0.0.1'

wsgi.url_scheme
'http'

SERVER_PORT
'80'

uwsgi.node
'hidden.com'

DOCUMENT_ROOT
'/usr/share/pyshared/baruwa'

wsgi.input
<uwsgi._Input object at 0x9f23908>

HTTP_HOST
'127.0.0.1'

wsgi.multithread
False

REQUEST_URI
'/messages/preview/CB410161013.A6C96/'

HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'

wsgi.version
(1, 0)

wsgi.run_once
False

wsgi.errors
<open file 'wsgi_errors', mode 'w' at 0x9f15b20>

REMOTE_PORT
'42549'

HTTP_ACCEPT_LANGUAGE
'en-US,en;q=0.5'

uwsgi.version
'1.0.3-debian'

CONTENT_TYPE
''

wsgi.file_wrapper
''

CSRF_COOKIE
'70532118880ef873168b4aa3c5fd9b84'

HTTP_ACCEPT_ENCODING
'gzip, deflate'
---------------------------------------------------------------------------------------------------

I have checked. There is no directory 
/usr/share/pyshared/baruwa/messages/preview/ on the server.

Kindly help.

Many Thanks,

Warm Regards,

_______________________________________________
http://pledgie.com/campaigns/12056

Reply via email to