[modwsgi] WSGI equivalent for LUA.

2008-08-18 Thread Graham Dumpleton
FYI. http://wsapi.luaforge.net/ For example: function hello(wsapi_env) local headers = { [Content-type] = text/html } local function hello_text() coroutine.yield(htmlbody) coroutine.yield(pHello Wsapi!/p) coroutine.yield(pPATH_INFO: .. wsapi_env.PATH_INFO .. /p)

[modwsgi] Re: Strange connection drops from Trac via mod_wsgi

2008-08-21 Thread Graham Dumpleton
with it :-) As it happens. I'm using the macports python 2.5 on that that machine, but that probably doesn't make any difference, given what you're seeing. I am still using the 1.3.41 apache that came with Tiger, though. Simon On Aug 21, 2008, at 8:50 PM, Graham Dumpleton wrote: Duplicated using mod_wsgi 2.1

[modwsgi] Re: Strange connection drops from Trac via mod_wsgi

2008-08-21 Thread Graham Dumpleton
['wsgi.file_wrapper'](data, 4096) Graham 2008/8/22 Graham Dumpleton [EMAIL PROTECTED]: Following code in mod_wsgi is wrong: if (*PyString_AsString(result) == '\0') { PyErr_SetObject(PyExc_StopIteration, Py_None); Py_DECREF(args); Py_DECREF(result); return 0

[modwsgi] Re: Strange connection drops from Trac via mod_wsgi

2008-08-21 Thread Graham Dumpleton
amount of time lately to work on it. Graham Simon On Aug 21, 2008, at 10:12 PM, Graham Dumpleton wrote: On Apache 2.X on UNIX, you would also have had problems if file like object supplied to wsgi.file_wrapper wasn't actually an open file with associated file descriptor, but some other file

[modwsgi] Re: mod_python vs mod_wsgi performance when un-cPickling a dict

2008-08-22 Thread Graham Dumpleton
2008/8/22 Olive [EMAIL PROTECTED]: After further testing I've noticed this: Just after restarting Apache: mod_python: 2.52s mod_wsgi: 2.08s subsequent requests give more or less the same results. After 9 requests or so: mod_python: 5.28s mod_wsgi: 4.5s ... and so on. Finally,

[modwsgi] Versions 1.5 and 2.2 of mod_wsgi now available.

2008-08-22 Thread Graham Dumpleton
Details can be found at: http://code.google.com/p/modwsgi/wiki/ChangesInVersion0105 http://code.google.com/p/modwsgi/wiki/ChangesInVersion0202 Important changes are file descriptor leaks on a graceful restart in both versions and for version 2.2 possible truncation of data when using

[modwsgi] Re: Versions 1.5 and 2.2 of mod_wsgi now available.

2008-08-22 Thread Graham Dumpleton
2008/8/22 Nimrod A. Abing [EMAIL PROTECTED]: Important changes are file descriptor leaks on a graceful restart in both versions and for version 2.2 possible truncation of data when using wsgi.file_wrapper. An upgrade would be recommended especially due to the latter if using wsgi.file_wrapper

[modwsgi] Re: mod_wsgi 2.2 seems to be breaking CGI

2008-08-23 Thread Graham Dumpleton
Are you using mod_cgi or mod_cgid? Graham 2008/8/23 Douglas Thrift [EMAIL PROTECTED]: Hello, This is really strange, but after upgrading from 2.1 I was looking at my website and noticed that all of my CGI scripts were returning 500 errors and in the log it was just saying Premature end of

[modwsgi] Re: Versions 1.5 and 2.2 of mod_wsgi now available.

2008-08-23 Thread Graham Dumpleton
2008/8/23 Nimrod A. Abing [EMAIL PROTECTED]: On Sat, Aug 23, 2008 at 1:33 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/8/22 Nimrod A. Abing [EMAIL PROTECTED]: Important changes are file descriptor leaks on a graceful restart in both versions and for version 2.2 possible truncation

[modwsgi] Re: mod_wsgi 2.2 seems to be breaking CGI

2008-08-23 Thread Graham Dumpleton
[EMAIL PROTECTED] http://www.douglasthrift.net - Original Message - From: Graham Dumpleton [EMAIL PROTECTED] To: modwsgi@googlegroups.com Sent: Saturday, August 23, 2008 3:57 AM Subject: [modwsgi] Re: mod_wsgi 2.2 seems to be breaking CGI Are you using mod_cgi or mod_cgid? Graham

[modwsgi] Version 2.3 of mod_wsgi now available.

2008-08-23 Thread Graham Dumpleton
This quick turn around version is to fix problem with 2.2 which caused CGI scripts to fail. See: http://groups.google.com/group/modwsgi/browse_frm/thread/79a86f8faffe7dcf The problem may also have possibly affected other Apache modules as well. If you obtained version 2.2 already, it is

[modwsgi] Re: mod_wsgi 2.2 seems to be breaking CGI

2008-08-23 Thread Graham Dumpleton
Released version 2.3 to fix this. 2008/8/23 Graham Dumpleton [EMAIL PROTECTED]: Okay, confirmed on MacOS X 10.5. It only happens when WSGIDaemonProcess directive used with mod_wsgi. Patch is: Index: mod_wsgi.c

[modwsgi] Re: mod_wsgi 2.2 seems to be breaking CGI

2008-08-23 Thread Graham Dumpleton
than one daemon process in the group I guess a mod_wsgi 2.3 will be in order, but need to also fix setprocttitle() call first as well. :-) Graham 2008/8/23 Graham Dumpleton [EMAIL PROTECTED]: Right now I cant see how mod_wsgi 2.2 changes could be affecting CGI scripts, so please excuse me asking

[modwsgi] Re: Versions 1.5 and 2.2 of mod_wsgi now available.

2008-08-23 Thread Graham Dumpleton
2008/8/24 Nimrod A. Abing [EMAIL PROTECTED]: Our config does not have maximum-requests specified. You do bring up a very good way of dealing with scaling issues that we are anticipating. I am not sure what part of what I said is relevant to 'scaling'. In general when scaling is the topic, I

[modwsgi] Re: Versions 1.5 and 2.2 of mod_wsgi now available.

2008-08-24 Thread Graham Dumpleton
, Graham Dumpleton [EMAIL PROTECTED] wrote: The plan is to use the system found in Chapter 20 of the Django book: http://www.djangobook.com/en/1.0/chapter20/ See figure 20-4 All the Django app servers will be running mod_wsgi and will be placed behind a server running perlbal or Apache

[modwsgi] Re: Version 2.3 of mod_wsgi now available.

2008-08-24 Thread Graham Dumpleton
Damn, forgot to update the internal version mod_wsgi version numbers again. At least I remember the version string this time. :-) Graham 2008/8/23 Graham Dumpleton [EMAIL PROTECTED]: This quick turn around version is to fix problem with 2.2 which caused CGI scripts to fail. See: http

[modwsgi] Re: Donations

2008-08-24 Thread Graham Dumpleton
2008/8/25 mrts [EMAIL PROTECTED]: Graham, let me first thank you for mod_wsgi. It is just excellent. I really would like to arrange some donations to thank you for mod_wsgi development (unfortunately nothing grand, but perhaps others will follow the lead... ping, Google?). However, it's

[modwsgi] Re: Cookie-based authentication

2008-08-25 Thread Graham Dumpleton
2008/8/25 mrts [EMAIL PROTECTED]: First, let me say that AuthBasicProvider wsgi WSGIAuthUserScript /usr/local/wsgi/scripts/auth.wsgi works well for me with Django (there were some issues reported in another thread). But having access only to a limited environment, user and password is

[modwsgi] Re: Authkit

2008-08-26 Thread Graham Dumpleton
2008/8/26 Garito [EMAIL PROTECTED]: Anyone has a good example or tutorial about how to integrate Authkit with mod_wsgi? As mod_wsgi is just a WSGI implementation, anything which explains how to use AuthKit for WSGI should give you want you want. I haven't read it, but perhaps have a look at

[modwsgi] WSGI support and Cherokee HTTPd

2008-08-26 Thread Graham Dumpleton
FYI. I manage to get drawn into posting a big long rant about mod_wsgi in followup to some comments about adding WSGI support to Cherokee HTTPd. The rant may be partly of interest to some: http://groups.google.com/group/cherokee-http/browse_frm/thread/d5506804396f9a6c?hl=en Now if I can only

[modwsgi] Comments on a Django/mod_wsgi blog post.

2008-08-26 Thread Graham Dumpleton
Since I am pointing out posts elsewhere where I have been ranting. Here is another one in followup to someones blog post about Django and mod_wsgi. In this case was mainly responding to someone elses comment rather than actual blog. Again, the comments may be of interest.

[modwsgi] Re: Improving the mod_wsgi documentation.

2008-08-27 Thread Graham Dumpleton
2008/8/27 Graham Dumpleton [EMAIL PROTECTED]: As part of the process of improving wiki documentation for mod_wsgi, which everyone is encouraging me to do, I have extracted and trimmed slightly the build and installation notes from the README in the source code and stuck them in a wiki

[modwsgi] Interesting mod_wsgi configuration example.

2008-08-29 Thread Graham Dumpleton
FYI. http://groups.google.com/group/django-users/browse_frm/thread/1854f40020e43bc9 They wanted a way of having same Django code hosted under same host name, but where Django settings was different based on user agent string. Problem is that Django settings is based on process environment

[modwsgi] Re: Mercurial and mod_wsgi.

2008-09-01 Thread Graham Dumpleton
2008/9/1 Manuzhai [EMAIL PROTECTED]: On Mon, Sep 1, 2008 at 2:00 AM, Graham Dumpleton [EMAIL PROTECTED] wrote: I already have to tread gingerly around people involved with a number of different Python projects because I took issue with their software and they didn't like it. Some others

[modwsgi] Re: Performance; PHP vs CGI vs mod_wsgi

2008-09-03 Thread Graham Dumpleton
2008/9/4 Joe [EMAIL PROTECTED]: Brett Hoerner wrote: On Wed, Sep 3, 2008 at 6:59 PM, Joe [EMAIL PROTECTED] wrote: I've just converted a PHP (Apache 2.2 mod_php5) application first to Python CGI and then to mod_wsgi, so I decided to benchmark some 40-odd representative pages because I

[modwsgi] Re: Performance; PHP vs CGI vs mod_wsgi

2008-09-03 Thread Graham Dumpleton
2008/9/4 Joe [EMAIL PROTECTED]: Thanks for your comments. I'll try StringIO and report further if necessary. If you want to work at a low level, ie., don't want to use one of the big frameworks, might I suggest you look at: http://werkzeug.pocoo.org/ Graham

[modwsgi] Re: Performance; PHP vs CGI vs mod_wsgi

2008-09-03 Thread Graham Dumpleton
Your WSGI application entry point is coded wrongly. See comments below, but at least make fix mentioned below. 2008/9/4 Joe [EMAIL PROTECTED]: Graham Dumpleton wrote: Which indicates one script for all URLs. I am presuming you had one script for each URL with PHP rather than doing

[modwsgi] Re: Limit the memory of each daemon process ...

2008-09-04 Thread Graham Dumpleton
. Bad me. :-( Graham Regards, Clodoaldo Thanks -Mic 2008/9/4 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/4 Mic Pringle [EMAIL PROTECTED]: Hi, I'm looking to use mod_wsgi to implement a shared hosting scheme for Django and was wondering if it was possible to set a limit/cap

[modwsgi] Re: Limit the memory of each daemon process ...

2008-09-04 Thread Graham Dumpleton
2008/9/5 Brian Smith [EMAIL PROTECTED]: Mic Pringle wrote: I will definitley get back to you with my findings, but this project is still in a very early stage so it may be later rather than sooner. On a side note, do you have any other recommendations/interesting tid-bits that could be

[modwsgi] Re: Limit the memory of each daemon process ...

2008-09-05 Thread Graham Dumpleton
that should cut out some of the security worries mentioned. I shall look forward to see what else this thread brings :-) -Mic 2008/9/5 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/5 Brian Smith [EMAIL PROTECTED]: Graham Dumpleton wrote: 2008/9/5 Brian Smith [EMAIL PROTECTED]: You cannot

[modwsgi] Re: SQLAlchemy and modwsgi

2008-09-05 Thread Graham Dumpleton
2008/9/5 Manuzhai [EMAIL PROTECTED]: Not to spread FUD, but regrettably I've had nothing but problems with SQLAlchemy in a mod_wsgi hosted application. I'm not sure whose fault it is, and I've spent some time in #sqlachemy on freenode asking around (though they weren't generally very

[modwsgi] Re: SQLAlchemy and modwsgi

2008-09-05 Thread Graham Dumpleton
2008/9/5 Manuzhai [EMAIL PROTECTED]: On Fri, Sep 5, 2008 at 2:47 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: How many processes/threads is application running under and is that embedded mode or daemon mode? Embedded mode: WSGIScriptAlias / /home/djc/src/ska/ska.wsgi Apache prefork

[modwsgi] Re: SQLAlchemy and modwsgi

2008-09-05 Thread Graham Dumpleton
On WSGIDaemonProcess users user=cnobile group=cnobile \ processes=2 threads=2 maximum-requests=1000 WSGIProcessGroup users WSGIReloadMechanism Process Hope this helps somebody. -Carl On Fri, Sep 5, 2008 at 8:47 AM, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/5 Manuzhai [EMAIL

[modwsgi] Re: Improving the mod_wsgi documentation.

2008-09-05 Thread Graham Dumpleton
It is late and so its probably riddled with errors since I am tired, but have pushed onto the wiki: http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide Anyway, first attempt at least. :-) Sorry, need some sleep now. Post any errors you find. Graham 2008/8/28 Graham Dumpleton

[modwsgi] Re: Looks like Django 1.0 has been released.

2008-09-05 Thread Graham Dumpleton
2008/9/6 Brian Smith [EMAIL PROTECTED]: Graham Dumpleton wrote: Yeah, it keeps me from slacking off and loosing focus. For example, would much prefer to work out how to get mod_wsgi trunk working on Python 3.0 again. Have at least got it compiling again with Python 3.0b3, but crashes

[modwsgi] Re: Improving the mod_wsgi documentation.

2008-09-05 Thread Graham Dumpleton
2008/9/6 Nimrod A. Abing [EMAIL PROTECTED]: On Fri, Sep 5, 2008 at 9:26 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: It is late and so its probably riddled with errors since I am tired, but have pushed onto the wiki: http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide

[modwsgi] New logging middleware example in documentation.

2008-09-05 Thread Graham Dumpleton
For my afternoons diversion, have documented a new logging middleware in documentation. Whereas previous example logged just request headers and response headers to Apache error log file. This one will record those as well as request and response content. Each of these things is stored in a

[modwsgi] Re: Improving the mod_wsgi documentation.

2008-09-06 Thread Graham Dumpleton
2008/9/7 Clodoaldo [EMAIL PROTECTED]: - Apache Configuration The modules configuration directory is /etc/httpd/conf.d. This is my Fedora 8 desktop: [EMAIL PROTECTED] ~]$ ll /etc/httpd/conf.d/ total 112 -rw-r--r-- 1 root root 604 2008-04-05 05:53 BackupPC.conf -rw-r--r-- 1 root root

[modwsgi] Re: Mercurial and mod_wsgi.

2008-09-06 Thread Graham Dumpleton
2008/8/31 Graham Dumpleton [EMAIL PROTECTED]: Yes the stdout/stderr in mod_wsgi could be made more friendly to such code, which would help with closed check on stderr, and this is what following issue is for: http://code.google.com/p/modwsgi/issues/detail?id=82 Even so, WSGI applications

[modwsgi] Re: importing modules in .wsgi file

2008-09-16 Thread Graham Dumpleton
2008/9/17 MilesTogoe [EMAIL PROTECTED]: on the local development server using a manage.py file, this works: from app import utils from app.application import App assuming folder structure like: project manage.py app utils.py application.py but in .wsgi file it does not work

[modwsgi] Re: Bad header with mod_proxy, mod_wsgi and paste. Possible bug

2008-09-16 Thread Graham Dumpleton
BTW, I hope you are reading response here as paste-users list rejects outright my response so you will not see it there. Graham 2008/9/17 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/17 Jorge Vargas [EMAIL PROTECTED]: Hello I'm having an issue running the following setup. My hosting provider

[modwsgi] Re: keeps getting - Forbidden You don't have permission to access / on this server.

2008-09-16 Thread Graham Dumpleton
2008/9/17 Wayne [EMAIL PROTECTED]: yes, you are right, thanks alot. I just disabled the security level, I thought it will turn off the whole thing, after I disabled SELinux, it works fine now. If at all interested in getting SELinux extensions to work, note my comments in:

[modwsgi] Re: trouble with django and trailing slashes.

2008-09-16 Thread Graham Dumpleton
2008/9/17 Milan Andric [EMAIL PROTECTED]: On Tue, Sep 16, 2008 at 3:01 PM, Walter Cruz [EMAIL PROTECTED] wrote: Does someone have a problem with django in a subdir, trailing slashs and other things? I have a deploy like that: WSGIScriptAlias /walter

[modwsgi] Re: Bad header with mod_proxy, mod_wsgi and paste. Possible bug

2008-09-17 Thread Graham Dumpleton
thank you very much for all your help. See response below. On Tue, Sep 16, 2008 at 11:02 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/17 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/17 Graham Dumpleton [EMAIL PROTECTED]: Note that mod_wsgi doesn't generate a 'Connection' header

[modwsgi] Re: ImportError when .py files are not included

2008-09-17 Thread Graham Dumpleton
2008/9/18 Santiago Aguiar [EMAIL PROTECTED]: Hi everyone! I'm migrating a django app from mod_python to mod_wsgi, and I'm having some issues. My app is installed under site-packages but I only include the .pyc files. When requesting a page, the wsgi script dies on an ImportError when

[modwsgi] Re: trouble with django and trailing slashes.

2008-09-17 Thread Graham Dumpleton
2008/9/18 Walter Cruz [EMAIL PROTECTED]: For the sake of the archives and spiders, it workerd after FORCE_SCRIPT_NAME='' has been added to settings.py in django. What version of Django are you using? Graham --~--~-~--~~~---~--~~ You received this message

[modwsgi] Re: trouble with django and trailing slashes.

2008-09-17 Thread Graham Dumpleton
2008/9/18 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/18 Walter Cruz [EMAIL PROTECTED]: For the sake of the archives and spiders, it workerd after FORCE_SCRIPT_NAME='' has been added to settings.py in django. What version of Django are you using? And also post what you have in your urls.py

[modwsgi] Re: trouble with django and trailing slashes.

2008-09-17 Thread Graham Dumpleton
2008/9/18 Walter Cruz [EMAIL PROTECTED]: On Wed, Sep 17, 2008 at 9:37 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/18 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/18 Walter Cruz [EMAIL PROTECTED]: For the sake of the archives and spiders, it workerd after FORCE_SCRIPT_NAME='' has

[modwsgi] Re: trouble with django and trailing slashes.

2008-09-17 Thread Graham Dumpleton
2008/9/18 Walter Cruz [EMAIL PROTECTED]: hum.. my prefix is 'unb' :) (I had simplified the case in the first e-mail). Should I take it off the urls.py? Let me quote the documentation below. All that below applies only to pre Django 1.0. So if using Django 1.0 and you have made both the

[modwsgi] Re: ImportError when .py files are not included

2008-09-18 Thread Graham Dumpleton
messages. Initial posts from new user are moderated to stop the spam problem. Graham thanks! On Wed, Sep 17, 2008 at 7:53 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/18 Santiago Aguiar [EMAIL PROTECTED]: Hi everyone! I'm migrating a django app from mod_python to mod_wsgi

[modwsgi] Re: Hello World example crashes Apache

2008-09-18 Thread Graham Dumpleton
Anyone else using Adal's precompiled binaries on Vista? Windows doesn't generally suffer the range of shared library versioning problems as UNIX systems, so bit in the dark as what to suggest. I presume Adal's binaries were originally compiled against Windows XP. Don't know if that matters. I

[modwsgi] Re: Python 2.6 and migration warnings flag for Python 3.0.

2008-09-18 Thread Graham Dumpleton
2008/9/19 Brian Smith [EMAIL PROTECTED]: Graham Dumpleton wrote: In subversion trunk of mod_wsgi for version 3.0, you can now if using Python 2.6 set: WSGIPy3kWarningFlag On with effect hopefully being same as -3 option to 'python' executable. Note that haven't got Python 2.6

[modwsgi] Re: trouble with django and trailing slashes.

2008-09-18 Thread Graham Dumpleton
2008/9/19 bobince [EMAIL PROTECTED]: I'm not using Django, but there's definitely something wacky about trailing slashes in mod_wsgi (2.3, running on Apache 2.2). It's not a problem for me, but it's rather curious. With a WSGI app mounted at /app, a request to /app/x/y/z gives (as

[modwsgi] Re: Bad header with mod_proxy, mod_wsgi and paste. Possible bug

2008-09-18 Thread Graham Dumpleton
2008/9/19 Brian Smith [EMAIL PROTECTED]: Graham Dumpleton wrote: Please let me know what the Pylons/Paste people have to say about it. I raised this problem before on Python WEB-SIG, where Ian Bicking and others listen and they never commented. That issue I referenced has a reference

[modwsgi] Re: trouble with django and trailing slashes.

2008-09-18 Thread Graham Dumpleton
2008/9/19 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/19 bobince [EMAIL PROTECTED]: I'm not using Django, but there's definitely something wacky about trailing slashes in mod_wsgi (2.3, running on Apache 2.2). It's not a problem for me, but it's rather curious. With a WSGI app mounted

[modwsgi] Re: mod_wsgi + rpy (R connector to Python)

2008-09-18 Thread Graham Dumpleton
Message forwarded to mod_wsgi group on Google groups. http://groups.google.com/group/modwsgi Will be a few hours before I can response properly. In the interim, read through: http://code.google.com/p/modwsgi/wiki/ApplicationIssues

[modwsgi] Re: trouble with django and trailing slashes.

2008-09-19 Thread Graham Dumpleton
2008/9/19 bobince [EMAIL PROTECTED]: I'm not using Django, but there's definitely something wacky about trailing slashes in mod_wsgi (2.3, running on Apache 2.2). It's not a problem for me, but it's rather curious. With a WSGI app mounted at /app, a request to /app/x/y/z gives (as

[modwsgi] Re: mod_wsgi + AMD64

2008-09-19 Thread Graham Dumpleton
2008/9/20 TheIvIaxx [EMAIL PROTECTED]: As i understand it, i will need to build mod_wsgi for Vista 64 on the AMD64 architecture. Unfortunately i have never built a python module :) That is okay, it isn't a Python module so that will not help. It is actually worse than a Python module, it

[modwsgi] Re: wsgi info()

2008-09-19 Thread Graham Dumpleton
2008/9/20 Carl Nobile [EMAIL PROTECTED]: mod_wsgi is not a framework, so don't expect it to generate web pages for you it is a way of using WSGI (Web Service Gateway Interface) with apache only, and is very light weight compared to other alternatives. You could get what you want from

[modwsgi] Re: Authorization

2008-09-19 Thread Graham Dumpleton
2008/9/20 Alex K [EMAIL PROTECTED]: OK, I'll try, btw what is the common way to solve this task? My first idea was to encapsulate file sharing via the application itself (http://host.com/givemefile.py?file_id=1), but I fear about poor performance in this case. If you use wsgi.file_wrapper

[modwsgi] Re: Authorization

2008-09-19 Thread Graham Dumpleton
2008/9/20 Carl Nobile [EMAIL PROTECTED]: Implementing basic auth is fairly easy as compared to digest auth, but be aware that with basic auth your username/password(cookie value) are essentially sent in the clear no encryption is done. Don't mistake base64 encoding for encryption as being

[modwsgi] Re: Authorization

2008-09-19 Thread Graham Dumpleton
2008/9/20 Carl Nobile [EMAIL PROTECTED]: Alex, Basic auth is sent with each end every request that needs authentication. You just add the proper headers in your request and it should all work. Now, something else to think about is that your browser will intercept the first auth request and

[modwsgi] Re: Authorization

2008-09-19 Thread Graham Dumpleton
2008/9/20 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/20 Carl Nobile [EMAIL PROTECTED]: Alex, Basic auth is sent with each end every request that needs authentication. You just add the proper headers in your request and it should all work. Now, something else to think about is that your

[modwsgi] Re: Authorization

2008-09-19 Thread Graham Dumpleton
/Limit /Location May not allow exact codes you want. Would try some things myself, but have guests coming for lunch soon. :-) Graham -Carl On Fri, Sep 19, 2008 at 10:32 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/20 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/20 Carl

[modwsgi] Re: wsgi info()

2008-09-22 Thread Graham Dumpleton
2008/9/23 Brian Smith [EMAIL PROTECTED]: Graham Dumpleton wrote: 2008/9/20 Carl Nobile [EMAIL PROTECTED]: If this existed, you would still need to have a WSGI script file that invokes it. The problem though is that core mod_wsgi is C code only and want to keep it that way. Ie., don't want

[modwsgi] Re: display-name=Blargh!

2008-09-22 Thread Graham Dumpleton
2008/9/23 Thomas Johansson [EMAIL PROTECTED]: Hi mate, Just a tiny request here. It'd be nice if you could provide a proper string to display-name, e.g. httpd %{GROUP}. Or have it append the already existing name. Currently it turns this: \_ /home/simplecodes/webapps/apache/bin/httpd -f

[modwsgi] Re: Trying to install, but getting syntax error

2008-09-23 Thread Graham Dumpleton
it is indeed Apache 2.2. If not then it is Apache 1.3. Graham /usr/sbin/httpd -v Server version: Apache/2.2.9 (Unix) Server built: Sep 22 2008 18:15:03 Cpanel::Easy::Apache v3.2.0 rev4436 Thanks, Dustin On Sep 22, 5:53 pm, Graham Dumpleton [EMAIL PROTECTED] wrote: How are you installing

[modwsgi] Re: Trying to install, but getting syntax error

2008-09-23 Thread Graham Dumpleton
2008/9/24 nerdydork [EMAIL PROTECTED]: I ran strings -a /usr/lib/httpd/modules/mod_wsgi.so | grep AP2 and still no output. I looked in /usr/include/httpd/ and found ap_release.h. I opened it and noticed ... #define AP_SERVER_BASEVENDOR Apache Software Foundation #define

[modwsgi] Re: mod_wsgi

2008-09-23 Thread Graham Dumpleton
is handled by the second server. That way I will always be able to upgrade my slices if I ever need to scale more. On Sep 23, 7:26 am, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/23 Jason Broyles [EMAIL PROTECTED]: Graham, How are you today? First off, thanks for mod_wsgi. I am trying

[modwsgi] Re: Bad header with mod_proxy, mod_wsgi and paste. Possible bug

2008-09-24 Thread Graham Dumpleton
2008/9/25 Brian Smith [EMAIL PROTECTED]: Graham Dumpleton wrote: 2008/9/19 Brian Smith [EMAIL PROTECTED]: I think there is also the problem that you cannot know where to parse things using the quoted-string production and where you can parse things using the TEXT production (which

[modwsgi] Re: mod_wsgi

2008-09-24 Thread Graham Dumpleton
prematurely. Just get your application running first. Graham Thanks again for all of your input. On Sep 24, 12:18 am, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/23 issya [EMAIL PROTECTED]: Thanks for the follow-up and thanks for adding it to the mailing list. I should have did

[modwsgi] Re: mod_wsgi

2008-09-24 Thread Graham Dumpleton
. This is because a lot of stuff is done entirely in C code in mod_wsgi or Apache itself. Apache can also be used in multi process configuration which avoids the issue entirely. Graham On Sep 24, 9:46 pm, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/25 issya [EMAIL PROTECTED]: The version of Apache

[modwsgi] Observations about setuptools fork and WSGI.

2008-09-24 Thread Graham Dumpleton
For those who haven't seen it, there has been a fork of seuptools for Python. http://tarekziade.wordpress.com/2008/09/24/distribute-a-setuptools-fork/ Why do I find this interesting. Well it is the comments: The project is run by one single man, who is really busy on other things as well. I

[modwsgi] Re: Observations about setuptools fork and WSGI.

2008-09-25 Thread Graham Dumpleton
2008/9/25 William Dode [EMAIL PROTECTED]: On 25-09-2008, Graham Dumpleton wrote: [...] This is why I see the fork of setuptools being interesting. That is, someone else has got frustrated enough with something else produced by I just read that there is an other one : http

[modwsgi] Re: Observations about setuptools fork and WSGI.

2008-09-25 Thread Graham Dumpleton
2008/9/25 Manuzhai [EMAIL PROTECTED]: On Thu, Sep 25, 2008 at 12:07 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: Except that recent Python 3.0 betas/release candidates broke sub interpreter support Is that registered as a blocker yet? At the moment it is: http://bugs.python.org

[modwsgi] Re: Observations about setuptools fork and WSGI.

2008-09-25 Thread Graham Dumpleton
2008/9/25 Manuzhai [EMAIL PROTECTED]: On Thu, Sep 25, 2008 at 7:14 AM, Graham Dumpleton [EMAIL PROTECTED] wrote: This is why I see the fork of setuptools being interesting. That is, someone else has got frustrated enough with something else produced by the same author to get to that point

[modwsgi] Re: mod_wsgi

2008-09-25 Thread Graham Dumpleton
it applies to embedded mode. In daemon mode you can touch the WSGI script file and it will cause daemon processes for just that application to be restarted. See: http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode Graham On Sep 25, 12:14 am, Graham Dumpleton [EMAIL PROTECTED] wrote

[modwsgi] Warning about virtualenv 1.3.

2008-09-25 Thread Graham Dumpleton
Looks like virtualenv 1.3 has just come out. http://pypi.python.org/pypi/virtualenv I note though that documentation now no longer mentions using site.addsitedir() to make use of virtual environment with mod_python and mod_wsgi. Instead there is some new mechanism which requires doing an

[modwsgi] Re: Warning about virtualenv 1.3.

2008-09-26 Thread Graham Dumpleton
2008/9/26 Graham Dumpleton [EMAIL PROTECTED]: Looks like virtualenv 1.3 has just come out. http://pypi.python.org/pypi/virtualenv I note though that documentation now no longer mentions using site.addsitedir() to make use of virtual environment with mod_python and mod_wsgi. Instead

[modwsgi] Anyone for SSO across Django and Trac?

2008-09-26 Thread Graham Dumpleton
This may be of interest to some: http://sweetjesus26.livejournal.com/19936.html I have actually been ignoring Apache 2.3+ up till now, but the mod_session/mod_auth_form stuff could be extremely useful where wanting to have SSO across multiple Python applications such as Trac and Django. Will

[modwsgi] Re: Anyone for SSO across Django and Trac?

2008-09-26 Thread Graham Dumpleton
2008/9/26 Graham Dumpleton [EMAIL PROTECTED]: This may be of interest to some: http://sweetjesus26.livejournal.com/19936.html I have actually been ignoring Apache 2.3+ up till now, but the mod_session/mod_auth_form stuff could be extremely useful where wanting to have SSO across multiple

[modwsgi] Re: nginx in front of apache/mod_wsgi config issue

2008-09-26 Thread Graham Dumpleton
2008/9/27 Prairie Dogg [EMAIL PROTECTED]: I posted this to django-users yesterday with no response, thought that some folks here might have run into this problem. Instead of repeating myself here's the real quick summary: Stack: Ubuntu Hardy Apache 2.2 MPM Worker Nginx (reverse proxy in

[modwsgi] Re: Segmentation fault - premature end of script headers

2008-09-27 Thread Graham Dumpleton
Are you using the Python installation and Apache modules that WebFaction supplies or have you built any yourself from source code? Have you installed any third party Python modules yourself? Are you running PHP in the same Apache installation? Does your Django application create any background

[modwsgi] Re: nginx in front of apache/mod_wsgi config issue

2008-09-28 Thread Graham Dumpleton
2008/9/27 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/27 Prairie Dogg [EMAIL PROTECTED]: I posted this to django-users yesterday with no response, thought that some folks here might have run into this problem. Instead of repeating myself here's the real quick summary: Stack: Ubuntu Hardy

[modwsgi] Re: Warning about virtualenv 1.3.

2008-09-28 Thread Graham Dumpleton
Dumpleton [EMAIL PROTECTED]: 2008/9/26 Graham Dumpleton [EMAIL PROTECTED]: Looks like virtualenv 1.3 has just come out. http://pypi.python.org/pypi/virtualenv I note though that documentation now no longer mentions using site.addsitedir() to make use of virtual environment with mod_python

[modwsgi] Re: Annoying behavior, mod_wsgi caching?

2008-09-28 Thread Graham Dumpleton
2008/9/28 ianmendiola [EMAIL PROTECTED]: I'm running on embedded mode. Read: http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode Graham On Sep 28, 4:57 am, William Dode [EMAIL PROTECTED] wrote: On 28-09-2008, ianmendiola wrote: Hello, I've noticed that while developing a web

[modwsgi] Modelling how mod_wsgi daemon processes work.

2008-09-28 Thread Graham Dumpleton
FYI. http://d.hatena.ne.jp/pyxis-dev/20080606/1212770381 No I can't read Japanese. One can use Google to translate though (http://translate.google.com). Not sure how accurate the article is, as not sure how true to the original the Google translation is. Graham

[modwsgi] Re: Annoying behavior, mod_wsgi caching?

2008-09-28 Thread Graham Dumpleton
2008/9/29 MilesTogoe [EMAIL PROTECTED]: ianmendiola wrote: Ok, So this has definitely isolated the problem. A lot of the work I am doing is done in separate python modules that have been imported into the main script file. In regards to the example of editing settings.py in django and

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-09-29 Thread Graham Dumpleton
. On Sep 23, 1:01 am, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/19 Brian Smith [EMAIL PROTECTED]: Graham Dumpleton wrote: 2008/9/19 Brian Smith [EMAIL PROTECTED]: In Python 3.0 I do conversions toUnicode, ie., default string type in that version, as per discussion summary

[modwsgi] Re: Annoying behavior, mod_wsgi caching?

2008-09-29 Thread Graham Dumpleton
part of configuration which says how your WSGI script file is mapped for mod_wsgi, can tell you exactly what to do. Graham Thanks, Ian On Sep 28, 11:51 pm, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/29 MilesTogoe [EMAIL PROTECTED]: ianmendiola wrote: Ok, So this has

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-09-29 Thread Graham Dumpleton
2008/9/30 Toshio Kuratomi [EMAIL PROTECTED]: For response headers and content, the application can either generate bytes and thus control the encoding, or it will fallback to trying to convert it as latin-1 ifUnicodesupplied, so like wsgi.input, no problem there. Unlike wsgi.input where the

[modwsgi] Re: Running roundup directly under mod_wsgi possible?

2008-09-29 Thread Graham Dumpleton
Also, tracker_home probably should be an absolute path. I think that example in their documentation assumes you are running in parent directory of where stuff installed. That will not be the case with Apache/mod_wsgi. Graham 2008/9/30 Graham Dumpleton [EMAIL PROTECTED]: 2008/9/30 Van Gale

[modwsgi] Re: Running roundup directly under mod_wsgi possible?

2008-09-29 Thread Graham Dumpleton
2008/9/30 Van Gale [EMAIL PROTECTED]: Graham Dumpleton wrote: Also, tracker_home probably should be an absolute path. I think that example in their documentation assumes you are running in parent directory of where stuff installed. That will not be the case with Apache/mod_wsgi. Thanks

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-09-30 Thread Graham Dumpleton
2008/9/30 Toshio Kuratomi [EMAIL PROTECTED]: On Sep 29, 4:33 pm, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/9/30 Toshio Kuratomi [EMAIL PROTECTED]: For response headers and content, the application can either generate bytes and thus control the encoding, or it will fallback

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-09-30 Thread Graham Dumpleton
PROTECTED]: On Sep 29, 3:24 pm, Brian Smith [EMAIL PROTECTED] wrote: Toshio Kuratomi wrote: Graham Dumpleton wrote: As to the HTTP request headers, the RFCs say they are effectively latin-1. Thus, all HTTP_? variables in WSGI environ can only be processed as latin-1 when converting

[modwsgi] Re: Segmentation fault - premature end of script headers

2008-09-30 Thread Graham Dumpleton
Not particularly useful unfortunately. Next thing would be to determine if crash happens as a result of import WSGI script file itself, or due to call of WSGI application. Thus at head of WSGI script file add: import sys print sys.stderr, START OF WSGI SCRIPT FILE and at end of WSGI

[modwsgi] Re: Segmentation fault - premature end of script headers

2008-09-30 Thread Graham Dumpleton
2008/9/30 Pigletto [EMAIL PROTECTED]: After switching to WSGIApplicationGroup %{GLOBAL} my application started, but I have few more applications on this apache instance so I can't use this kind of setup. Can you explain to me how WebFaction process/memory limits work? If you don't have

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-09-30 Thread Graham Dumpleton
hfile = io.StringIO(b''.join(headers).decode('iso-8859-1')) self.headers = email.parser.Parser(_class=self.MessageClass).parse(hfile) Thus, any WSGI server based on that would have no chance of getting access to headers in byte form. Graham 2008/9/30 Graham Dumpleton [EMAIL

[modwsgi] Re: Segmentation fault - premature end of script headers

2008-09-30 Thread Graham Dumpleton
What do you get if you run: ulimit -a Maybe they have some sort of hard memory limits in place and you are hitting that. Graham 2008/9/30 Pigletto [EMAIL PROTECTED]: Now, again, my application is working with the same setup as before (without GLOBAL). I don't know why this started

[modwsgi] Re: mod_wsgi on Python 3.0 (was Re: Python 2.6 and migration warnings flag for Python 3.0.)

2008-09-30 Thread Graham Dumpleton
2008/9/30 Brian Smith [EMAIL PROTECTED]: mod_wsgi receives a sequence of bytes from apache. It transforms those into unicode by pretending that those bytes are latin-1 and sticks them into SCRIPT_NAME. IMO, mod_wsgi should just drop SCRIPT_NAME and all other non-WSGI environ keys except

  1   2   3   4   5   6   7   8   9   10   >