From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4157313866A for ; Fri, 25 Jan 2013 03:06:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1898F21C0A1; Fri, 25 Jan 2013 03:05:40 +0000 (UTC) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 693BE21C008 for ; Fri, 25 Jan 2013 03:05:38 +0000 (UTC) Received: by mail-pa0-f47.google.com with SMTP id fa10so5902121pad.6 for ; Thu, 24 Jan 2013 19:05:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=iYiyRa6zgh7+WNtXrL8EtBqh/X8c8JH1ocbLG9omHOQ=; b=CAA6IpOBdE8briiIDBGbf2l4RAR8i0JG5bUesmq+dvzh4+OnPD9RHDUuKNsqIWWdR8 1gSShPdPxYizeWmqn84QIwL29o7WllKWKYGWve+5svoQl0D8k08VwO8yItGduJvy+0iZ w9P2dwUuhtvWvxGKBDJCepOKCZBjgLLkHFLaEW5ARYr1GNZCWYTBpORTNzMZp8zBIZhk ZVaOU5SFbwb/nESW06UZUi7nBj+vunNX6YR0C8y5AIbsr3jgS/++5gnVHhoWiQ3vo+Eg 4DYNTDYvLCKu17EBFizjWAYzxqkM3dAmZ4r21UL86NeKUL7i6ZTN0izVbkCaR1l3yzIE 1FsA== X-Received: by 10.68.219.164 with SMTP id pp4mr10632558pbc.72.1359083137029; Thu, 24 Jan 2013 19:05:37 -0800 (PST) Received: from [192.168.0.4] ([123.201.39.77]) by mx.google.com with ESMTPS id sb3sm15961264pbc.44.2013.01.24.19.05.35 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jan 2013 19:05:36 -0800 (PST) Message-ID: <5101F67D.70009@nileshgr.com> Date: Fri, 25 Jan 2013 08:35:33 +0530 From: Nilesh Govindrajan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130120 Thunderbird/17.0.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Nginx with Python References: <20130124010450.be8ae17b9dcea581a39138f1@web.de> <5100B67D.8050206@nileshgr.com> <20130125020453.1054de5031d7ce2781770e63@web.de> In-Reply-To: <20130125020453.1054de5031d7ce2781770e63@web.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlkSHILYV2Q6KKnBCEBVEhMMfGGJbtwxgaT2UFYsVamLutmqk14zCFYLY+n4mGaMnxxCV7b X-Archives-Salt: 0791ba5c-8c1c-4141-a4c2-7f42f47bd6b3 X-Archives-Hash: 4bc98d658d4a7a8be3b18a0b981e4b85 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 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 > > siefke > siefke > > > /tmp/python.siefke.sock > > 1 > 20 > 128 > > > /var/www/python.silviosiefke.de/log/uwsgi.log > > > 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