Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] Nginx with Python Silvio Siefke <siefke_listen@×××.de>