[mod_python] Servlet and images.

FC tme-h81 at myamail.com
Sun Sep 12 11:19:21 EDT 2004


Hello Nicolas,

I have try that to. That doesn't works either. With this following 
configuration nothing is executed my borwser displays the source of the 
files.

Fred

On Sep 12, 2004, at 7:44 AM, Nicolas Lehuen wrote:
>
> Hi,
>
> You can specify which extensions are matched in the AddHandler, and 
> restrict
> PythonHandler to specific extensions using the | .foo syntax. Here is 
> my
> configuration :
>
> AddHandler mod_python .py .psp .pyh
> PythonHandler mod_python.publisher | .py
> PythonHandler mod_python.psp | .psp
> PythonHandler mod_python.servlet | .mps
> PythonHandler tcc.online.publisher | .pyh
> PythonDebug On
>
> Regards,
>
> Nicolas
>
>> -----Message d'origine-----
>> De : mod_python-bounces at modpython.org
>> [mailto:mod_python-bounces at modpython.org] De la part de FC
>> Envoyé : samedi 11 septembre 2004 22:53
>> À : mod_python user mailing list
>> Objet : [mod_python] Servlet and images.
>>
>>
>> Hello,
>>
>> I'm playing with mod_python and the servlet module from
>> Daniel Popowich and I wanted to know how can I have python
>> code and images in the same directory.
>>
>> My htaccess file look like this:
>>
>> SetHandler mod_python
>> PythonHandler mod_python.servlet
>> PythonDebug on
>>
>> Apache try to run every file through the servelet module. I
>> have also try to change SetHandler in my htaccess file to
>> AddHander mod_python .mps and AddHandler mod_python .py but
>> that doesn't work.
>>
>> Fred
>>
>>
>> _______________________________________________
>> Mod_python mailing list
>> Mod_python at modpython.org
>> http://mailman.modpython.org/mailman/listinfo/mod_python
>>
>
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>




More information about the Mod_python mailing list