[mod_python] CGI versus *real* mod_python?

Charles Stevenson core at bokeoa.com
Mon Apr 12 05:33:47 EST 2004


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

All,

On Sun, Apr 11, 2004 at 10:53:31PM -0700, Erik Stephens wrote:
> No, what you have there will use mod_python.  What Jorey was trying to
> get at (I think) was that maybe all of the files in /cgi-bin will be
> treated as CGIs since that is a common web server configuration.

Actually I think what he was trying to get at is that mod_python unlike
cgi doesn't require the scripts to reside in any certain directory. You
could for example create /~user/python-bin or something if you didn't
like the idea of intermixing your scripts with your html although I
don't see the point. If you want your scripts to reside in a specific
directory you should add a ptyhon path entry via htaccess so that 
mod_python knows where it might find your modules. I don't think any
server is configured to treat all file within cgi-bin as CGI. The reason
for a separate directory afaik is to restrict the scope of ExecCGI.

Correct me if I'm wrong. :)

Best Regards,
Charles Stevenson

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAen6bGAuLrxOyeJMRAi33AJ9foA9ZXqKXpPc61vojKDP+sMKuggCgphYa
mleo903gHh+xHG3Zo2Bt5j4=
=ITVO
-----END PGP SIGNATURE-----


More information about the Mod_python mailing list