Gentoo Archives: gentoo-user

From: Silvio Siefke <siefke_listen@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Nginx with Python
Date: Fri, 25 Jan 2013 01:05:30
Message-Id: 20130125020453.1054de5031d7ce2781770e63@web.de
In Reply to: Re: [gentoo-user] Nginx with Python by Nilesh Govindrajan
1 Hello,
2
3 On Thu, 24 Jan 2013 09:50:13 +0530
4 Nilesh Govindrajan <me@××××××××.com> wrote:
5
6 > Have a look at uwsgi. It can run pretty much anything.
7
8 Thanks i have do. I understand not why it not want run.
9
10 The configuration for uwsgi:
11
12 gentoo-mobile init.d # cat /etc/conf.d/uwsgi.pss | grep xml
13 # The path to your uWSGI xml config file.
14 UWSGI_XML_CONFIG=/etc/uwsgi.d/pss.xml
15
16 gentoo-mobile init.d # cat /etc/uwsgi.d/pss.xml
17 <uwsgi>
18 <uid>siefke</uid>
19 <gid>siefke</gid>
20 <vhost/>
21 <logdate/>
22 <socket>/tmp/python.siefke.sock</socket>
23 <master/>
24 <processes>1</processes>
25 <harakiri>20</harakiri>
26 <limit-as>128</limit-as>
27 <memory-report/>
28 <no-orphans/>
29 <daemonize>/var/www/python.silviosiefke.de/log/uwsgi.log</daemonize>
30 </uwsgi>
31
32 gentoo-mobile init.d # cat /etc/nginx/sites/python_siefke.conf
33 server
34 {
35 listen 80;
36 server_name python.silviosiefke.de;
37 access_log /var/www/python.silviosiefke.de/log/access_log main;
38 error_log /var/www/python.silviosiefke.de/log/error_log info;
39 index index.html;
40
41 location / {
42 include /etc/nginx/configuration/uwsgi_params;
43 uwsgi_pass unix:///tmp/python.siefke.sock;
44 uwsgi_param UWSGI_CHDIR /var/www/python.silviosiefke.de/apps;
45 uwsgi_param UWSGI_PYHOME /var/www/python.silviosiefke.de/apps;
46 uwsgi_param UWSGI_SCRIPT index;
47 }
48
49 location /static {
50 alias /var/www/python.silviosiefke.de/htdocs;
51 expires 7d;
52 }
53
54 }
55
56
57 When i want run in webbrowser python.silviosiefke.de i become
58 uWSGI Error
59 Python application not found
60
61 gentoo-mobile init.d # ls /var/www/python.silviosiefke.de/apps/
62 index.py index.pyc static
63
64 Access Log: http://nopaste.info/8f9106d614.html
65 uWsgi Log: http://nopaste.info/8881d2f097.html
66
67
68 Has someone a idea? Thank you for help.
69
70 Silvio

Replies

Subject Author
Re: [gentoo-user] Nginx with Python Nilesh Govindrajan <me@××××××××.com>