

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
33 messages in ru.sysoev.nginxRe: beta testing for mod_wsgi| From | Sent On | Attachments |
|---|---|---|
| Manlio Perillo | Jan 6, 2008 6:55 am | |
| Darrin Chandler | Jan 6, 2008 8:39 am | |
| Manlio Perillo | Jan 6, 2008 9:31 am | |
| Adrian Perez | Jan 12, 2008 11:50 am | |
| Manlio Perillo | Jan 12, 2008 12:37 pm | |
| Andrew Deason | Jan 12, 2008 2:47 pm | |
| Adrian Perez | Jan 12, 2008 7:49 pm | |
| Manlio Perillo | Jan 13, 2008 3:33 am | |
| Manlio Perillo | Jan 13, 2008 3:34 am | |
| Adrian Perez | Jan 13, 2008 6:49 pm | |
| Adrian Perez | Jan 13, 2008 7:13 pm | |
| mobi...@public.gmane.org | Jan 13, 2008 7:33 pm | |
| mobi...@public.gmane.org | Jan 13, 2008 7:45 pm | |
| Adrian Perez | Jan 13, 2008 7:53 pm | |
| Adrian Perez | Jan 13, 2008 7:57 pm | |
| Manlio Perillo | Jan 14, 2008 2:32 am | |
| Manlio Perillo | Jan 14, 2008 2:34 am | |
| Adrian Perez | Jan 14, 2008 3:22 am | |
| mobi...@public.gmane.org | Jan 15, 2008 2:25 am | |
| mobi...@public.gmane.org | Jan 15, 2008 2:32 am | |
| Manlio Perillo | Jan 15, 2008 2:36 am | |
| Manlio Perillo | Jan 15, 2008 2:41 am | |
| mobi...@public.gmane.org | Jan 15, 2008 2:52 am | |
| mobi...@public.gmane.org | Jan 15, 2008 2:53 am | |
| mobi...@public.gmane.org | Jan 15, 2008 2:55 am | |
| mobi...@public.gmane.org | Jan 15, 2008 3:02 am | |
| Manlio Perillo | Jan 15, 2008 3:06 am | |
| Adrian Perez | Jan 27, 2008 6:22 pm | |
| Manlio Perillo | Jan 28, 2008 2:47 am | |
| Adrian Perez | Jan 28, 2008 8:17 am | |
| Manlio Perillo | Jan 28, 2008 9:33 am | |
| Adrian Perez | Feb 6, 2008 7:17 pm | |
| Manlio Perillo | Feb 7, 2008 2:49 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: beta testing for mod_wsgi | Actions... |
|---|---|---|
| From: | Adrian Perez (adri...@public.gmane.org) | |
| Date: | Jan 27, 2008 6:22:10 pm | |
| List: | ru.sysoev.nginx | |
El Mon, 14 Jan 2008 11:34:44 +0100
Manlio Perillo <manlio_perillo-VGgt2q2+T+FeoW...@public.gmane.org>
escribió:
Adrian Perez ha scritto:
Note that here you do not need an extra script: you can just do in nginx configuration:
env PYTHON_EGG_CACHE /tmp/test/eggs
location / { wsgi_param trac.env_path /tmp/test wsgi_pass /path/to/trac.web.main dispatch_request; }
Confirmed, this is working in my home server now, but with a glich: when /login is accessed, status 404 is returned to the client and the returned HTML says "Environment not found". The user will be authenticated anyway, because the header with the session cookie is sent in the response. You can remove the "/login" from the URL afterwards and Trac will see you as authenticated.
You may see this behaviour at http://foobar.homeunix.org/trac/overlay (try to login as guest).
The traceback looks like the following:
Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 19,in <module> import cgi SystemError: Parent module '_wsgi__trac_?' not loaded ,
The config file section for Trac looks contains:
env PYTHON_EGG_CACHE=/var/tmp/nginx/python-eggs;
http { # some not-wsgi, not trac-related directives here...
server { listen 80; server_name foobar.homeunix.org; wsgi_python_optimize 1; include wsgi_vars; wsgi_var trac.env_parent_dir /home/trac; wsgi_enable_subinterpreters off;
location /trac { wsgi_pass /usr/lib/python2.5/site-packages/trac/web/main.py dispatch_request; } location ~ /trac/[^/]+/login { auth_basic "Trac"; auth_basic_user_file /home/trac/passwd; wsgi_pass /usr/lib/python2.5/site-packages/trac/web/main.py dispatch_request; } location /trac/chrome/common { alias /usr/lib/python2.5/site-packages/trac/htdocs; } } }
Any ideas?
-- Nano's simple, Vim's perfect. -- (SwifT, #gentoo@freenode)







