[mod_python] PublisherHandler

Mike Klein mikeklein at sbcglobal.net
Thu Oct 2 12:36:56 EST 2003


Gregory (Grisha) Trubetskoy wrote:

>On Thu, 2 Oct 2003, Nikolay Alexiev wrote:
>
>  
>
>>I'm using PublisherHandler for my project. This is my  .htaccess file
>>
>>    AddHandler python-program .py
>>    SetHandler python-program
>>    
>>
>
>You don't need both AddHandler and SetHandler, SetHandler alone will cover
>every type of file.
>
>  
>
>>    PythonHandler mod_python.publisher
>>    PythonDebug On
>>
>>But now I can't load pictures from this folder and from its subfolder. Can I
>>do something or the only way is to move images in a folder that is a level
>>above?
>>    
>>
>
>You can create a subdirectory and add "SetHandler None" which reverses
>previous SetHandler's:
>
>http://httpd.apache.org/docs-2.0/mod/core.html#sethandler
>
>HTH,
>
>Grisha
>_______________________________________________
>Mod_python mailing list
>Mod_python at modpython.org
>http://mailman.modpython.org/mailman/listinfo/mod_python
>
>  
>
Shouldn't he just remove the SetHandler line?


mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.modpython.org/pipermail/mod_python/attachments/20031002/bc38a4e3/attachment-0003.htm


More information about the Mod_python mailing list