Apache environment variables via mod_rewrite to spyce?
spyce-3j6+YF/[email protected]
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
I'm running a standalone Spyce 2.0.3 server behind Apache 2.x using the following rewrite rule:
RewriteRule ^(.*\.spy) http://localhost:6789$1 [p]
Is it possible to have the Apache environment variables passed to spyce? For instance, I'd like to obtain the originating SERVER_ADDR from within a Spyce page. However, doing so always results in 127.0.0.1 (since Apache is running on the same physical host) regardless of the remote host that I connected from.
Using Spyce via mod_python the Apache environment variables are easilly obtained however, this obviosuly isn't the case with the standalone server.
Thanks,
Phil
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642