* [gentoo-user] Nginx with Python
@ 2013-01-24 0:04 Silvio Siefke
2013-01-24 4:20 ` Nilesh Govindrajan
0 siblings, 1 reply; 7+ messages in thread
From: Silvio Siefke @ 2013-01-24 0:04 UTC (permalink / raw
To: gentoo-user
Hello,
has someone run this part of Server and maybe will share the way? I look
since days for tutorial but so really want nothing run. With Gentoo found
nothing really most of them speak from Ubuntu.
Thank you for Help & Greetings
Silvio
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Nginx with Python
2013-01-24 0:04 [gentoo-user] Nginx with Python Silvio Siefke
@ 2013-01-24 4:20 ` Nilesh Govindrajan
2013-01-25 1:04 ` Silvio Siefke
0 siblings, 1 reply; 7+ messages in thread
From: Nilesh Govindrajan @ 2013-01-24 4:20 UTC (permalink / raw
To: gentoo-user
On Thursday 24 January 2013 05:34:50 AM IST, Silvio Siefke wrote:
> Hello,
>
> has someone run this part of Server and maybe will share the way? I look
> since days for tutorial but so really want nothing run. With Gentoo found
> nothing really most of them speak from Ubuntu.
>
>
> Thank you for Help & Greetings
> Silvio
>
Have a look at uwsgi. It can run pretty much anything.
--
Nilesh Govindarajan
http://nileshgr.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Nginx with Python
2013-01-24 4:20 ` Nilesh Govindrajan
@ 2013-01-25 1:04 ` Silvio Siefke
2013-01-25 3:05 ` Nilesh Govindrajan
0 siblings, 1 reply; 7+ messages in thread
From: Silvio Siefke @ 2013-01-25 1:04 UTC (permalink / raw
To: gentoo-user
Hello,
On Thu, 24 Jan 2013 09:50:13 +0530
Nilesh Govindrajan <me@nileshgr.com> wrote:
> Have a look at uwsgi. It can run pretty much anything.
Thanks i have do. I understand not why it not want run.
The configuration for uwsgi:
gentoo-mobile init.d # cat /etc/conf.d/uwsgi.pss | grep xml
# The path to your uWSGI xml config file.
UWSGI_XML_CONFIG=/etc/uwsgi.d/pss.xml
gentoo-mobile init.d # cat /etc/uwsgi.d/pss.xml
<uwsgi>
<uid>siefke</uid>
<gid>siefke</gid>
<vhost/>
<logdate/>
<socket>/tmp/python.siefke.sock</socket>
<master/>
<processes>1</processes>
<harakiri>20</harakiri>
<limit-as>128</limit-as>
<memory-report/>
<no-orphans/>
<daemonize>/var/www/python.silviosiefke.de/log/uwsgi.log</daemonize>
</uwsgi>
gentoo-mobile init.d # cat /etc/nginx/sites/python_siefke.conf
server
{
listen 80;
server_name python.silviosiefke.de;
access_log /var/www/python.silviosiefke.de/log/access_log main;
error_log /var/www/python.silviosiefke.de/log/error_log info;
index index.html;
location / {
include /etc/nginx/configuration/uwsgi_params;
uwsgi_pass unix:///tmp/python.siefke.sock;
uwsgi_param UWSGI_CHDIR /var/www/python.silviosiefke.de/apps;
uwsgi_param UWSGI_PYHOME /var/www/python.silviosiefke.de/apps;
uwsgi_param UWSGI_SCRIPT index;
}
location /static {
alias /var/www/python.silviosiefke.de/htdocs;
expires 7d;
}
}
When i want run in webbrowser python.silviosiefke.de i become
uWSGI Error
Python application not found
gentoo-mobile init.d # ls /var/www/python.silviosiefke.de/apps/
index.py index.pyc static
Access Log: http://nopaste.info/8f9106d614.html
uWsgi Log: http://nopaste.info/8881d2f097.html
Has someone a idea? Thank you for help.
Silvio
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Nginx with Python
2013-01-25 1:04 ` Silvio Siefke
@ 2013-01-25 3:05 ` Nilesh Govindrajan
2013-01-25 22:20 ` Silvio Siefke
0 siblings, 1 reply; 7+ messages in thread
From: Nilesh Govindrajan @ 2013-01-25 3:05 UTC (permalink / raw
To: gentoo-user
On Friday 25 January 2013 06:34:53 AM IST, Silvio Siefke wrote:
> Hello,
>
> On Thu, 24 Jan 2013 09:50:13 +0530
> Nilesh Govindrajan <me@nileshgr.com> wrote:
>
>> Have a look at uwsgi. It can run pretty much anything.
>
> Thanks i have do. I understand not why it not want run.
>
> The configuration for uwsgi:
>
> gentoo-mobile init.d # cat /etc/conf.d/uwsgi.pss | grep xml
> # The path to your uWSGI xml config file.
> UWSGI_XML_CONFIG=/etc/uwsgi.d/pss.xml
>
> gentoo-mobile init.d # cat /etc/uwsgi.d/pss.xml
> <uwsgi>
> <uid>siefke</uid>
> <gid>siefke</gid>
> <vhost/>
> <logdate/>
> <socket>/tmp/python.siefke.sock</socket>
> <master/>
> <processes>1</processes>
> <harakiri>20</harakiri>
> <limit-as>128</limit-as>
> <memory-report/>
> <no-orphans/>
> <daemonize>/var/www/python.silviosiefke.de/log/uwsgi.log</daemonize>
> </uwsgi>
>
> gentoo-mobile init.d # cat /etc/nginx/sites/python_siefke.conf
> server
> {
> listen 80;
> server_name python.silviosiefke.de;
> access_log /var/www/python.silviosiefke.de/log/access_log main;
> error_log /var/www/python.silviosiefke.de/log/error_log info;
> index index.html;
>
> location / {
> include /etc/nginx/configuration/uwsgi_params;
> uwsgi_pass unix:///tmp/python.siefke.sock;
> uwsgi_param UWSGI_CHDIR /var/www/python.silviosiefke.de/apps;
> uwsgi_param UWSGI_PYHOME /var/www/python.silviosiefke.de/apps;
> uwsgi_param UWSGI_SCRIPT index;
> }
>
> location /static {
> alias /var/www/python.silviosiefke.de/htdocs;
> expires 7d;
> }
>
> }
>
>
> When i want run in webbrowser python.silviosiefke.de i become
> uWSGI Error
> Python application not found
>
> gentoo-mobile init.d # ls /var/www/python.silviosiefke.de/apps/
> index.py index.pyc static
>
> Access Log: http://nopaste.info/8f9106d614.html
> uWsgi Log: http://nopaste.info/8881d2f097.html
>
>
> Has someone a idea? Thank you for help.
>
> Silvio
>
Does your python application implement WSGI?
--
Nilesh Govindarajan
http://nileshgr.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Nginx with Python
2013-01-25 3:05 ` Nilesh Govindrajan
@ 2013-01-25 22:20 ` Silvio Siefke
2013-01-26 8:35 ` Nilesh Govindrajan
0 siblings, 1 reply; 7+ messages in thread
From: Silvio Siefke @ 2013-01-25 22:20 UTC (permalink / raw
To: gentoo-user
Hello,
On Fri, 25 Jan 2013 08:35:33 +0530
Nilesh Govindrajan <me@nileshgr.com> wrote:
> Does your python application implement WSGI?
Yes. Now all is okay, webpy is running. Next is Django and then i like
my nginx again.
Regards & Thank you
Silvio
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Nginx with Python
2013-01-25 22:20 ` Silvio Siefke
@ 2013-01-26 8:35 ` Nilesh Govindrajan
2013-01-26 13:46 ` Silvio Siefke
0 siblings, 1 reply; 7+ messages in thread
From: Nilesh Govindrajan @ 2013-01-26 8:35 UTC (permalink / raw
To: Gentoo User Mailing List
[-- Attachment #1: Type: text/plain, Size: 523 bytes --]
Typing from mobile, sorry for top post.
I haven't worked with Django, so don't know. Ping @unbit on twitter. He
might be knowing.
--
Nilesh Govindrajan
http://nileshgr.com
On Jan 26, 2013 3:51 AM, "Silvio Siefke" <siefke_listen@web.de> wrote:
> Hello,
>
> On Fri, 25 Jan 2013 08:35:33 +0530
> Nilesh Govindrajan <me@nileshgr.com> wrote:
>
> > Does your python application implement WSGI?
>
> Yes. Now all is okay, webpy is running. Next is Django and then i like
> my nginx again.
>
>
> Regards & Thank you
> Silvio
>
>
[-- Attachment #2: Type: text/html, Size: 953 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Nginx with Python
2013-01-26 8:35 ` Nilesh Govindrajan
@ 2013-01-26 13:46 ` Silvio Siefke
0 siblings, 0 replies; 7+ messages in thread
From: Silvio Siefke @ 2013-01-26 13:46 UTC (permalink / raw
To: gentoo-user
On Sat, 26 Jan 2013 14:05:53 +0530
Nilesh Govindrajan <me@nileshgr.com> wrote:
> Typing from mobile, sorry for top post.
No Problem.
> I haven't worked with Django, so don't know. Ping @unbit on twitter. He
> might be knowing.
It's run fine. Thank you. Twitter i can not write, no account.
Regards & Thank you
Silvio
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-01-26 13:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-24 0:04 [gentoo-user] Nginx with Python Silvio Siefke
2013-01-24 4:20 ` Nilesh Govindrajan
2013-01-25 1:04 ` Silvio Siefke
2013-01-25 3:05 ` Nilesh Govindrajan
2013-01-25 22:20 ` Silvio Siefke
2013-01-26 8:35 ` Nilesh Govindrajan
2013-01-26 13:46 ` Silvio Siefke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox