-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm probably trying to do something dumb, so bear with me. I have a
web.py application running as the web root under Apache2 + mod_wsgi.
There is another SCGI application (written in C/C++) that I want to
access as well. Apache doesn't allow me to easily configure this kind of
virtual layout using SCGIMount/SCGIHandler:

root = /                   <-- handled by web.py app
       /dir1/              <-- handled by web.py subapp 1
       /dir2/              <-- handled by web.py subapp 2
       /scgi-passthrough/  <-- scgi service
       /static/            <-- static content served by Apache

I see where Alias and ScriptAlias allows Apache to handle certain urls
as static content or cgi processes respectively. I've even found a
cgi2scgi.c program included in python-scgi that works with the
application using a ScriptAlias.

Unfortunately, the C program that is providing SCGI services doesn't
understand our sessions structure, doesn't speak oauth, etc. and returns
xml instead of json which we'd prefer. What I'd really like to do is to
use web.py to handle all the client communications and then translate /
proxy the request to the scgi backend as needed.

I've been reading SCGI python docs all day
(http://www.python.ca/scgi/protocol.txt) and looking at the code in
other apps, but in the end I can't figure out if this approach is even
possible. Has anyone ever tried to do something like this? Got code
examples to share? Will the threaded nature of apache2 + wsgi screw me
over if more than one thread tries to connect to the scgi backend
process without a web server in front of it?

Thanks in advance!

Tony
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNtyEyAAoJEAPVzrg8OofbXYYIALLF5/vTOqRAkSpDPRHR+Dey
2xFcMaLuKJmVESjMKMiTBihzmnFHJAGI6+cr3NCrbNaahdfNVvqHUdLtHWxN4Pp0
6Uf4zdxBqOAr7DeuPFuMyIi3cyOhoztb7eTKTt8MbwqHxJe8mjWxsMyJNjf4MI9C
qFs25I4tB5QQVAA5jIBQwQHJBCmruJFsi1xjpdFtOuxfRYyo2ZbLHsSnGi/KCNoT
3UMgcFq4X6pZ5axdCaHOmrgeg9PY25aBoMDrWXRIt3n3UzA9G5KLytosPeQQY5Y1
cZkMN19JlcS/M9gIAKKowwlOX70n6jJt6UvhLrbryOlCMje+2D6ggnY3V6+OraU=
=BVFo
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to