[mod_python] just a curious question.....

Gregory (Grisha) Trubetskoy grisha at modpython.org
Wed Nov 14 23:53:17 EST 2001


I think this is the same as:

     Alias /cgi-bin/ "C:/apache/Apache/cgi-bin/"

     <Directory "C:/apache/Apache/cgi-bin">
	 SetHandler cgi-script
         AddHandler python-program .py
         PythonHandler mptest
         PythonAuthenHandler mptest
         PythonDebug on
         AllowOverride None
         Options None
         Order allow,deny
         Allow from all
     </Directory>

Off the top of my head I don't know whether AddHandler will override
SetHandler OR whichever module is envoked first (mod_python or
mod_cgi) will handler the request. You might want to try moving around
LoadModule directives in your config to see what happens.

In any event it should either work fine or not at all - why do you say
"sort of"?

Grisha


On Wed, 14 Nov 2001, Ronald Mangaliag wrote:

> i changed my scriptalias section to something like this...
>
>     ScriptAlias /cgi-bin/ "C:/apache/Apache/cgi-bin/"
>
>     <Directory "C:/apache/Apache/cgi-bin">
>         AddHandler python-program .py
>         PythonHandler mptest
>         PythonAuthenHandler mptest
>         PythonDebug on
>         AllowOverride None
>         Options None
>         Order allow,deny
>         Allow from all
>     </Directory>
>
> and placed the mptest.py inside cgi-bin folder... it (sort of) works fine...
>
> is there something wrong with this?????
>
>
> just curious... ;)
>
> ali
>
>
>
>
>    ------------------------------------------------
>           E-mail service provided by SLUNET
>    Saint Louis University ( http://www.slu.edu.ph )
>    ------------------------------------------------
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
>




More information about the Mod_python mailing list