Xingyang Hu
hu.007 at 163.com
Wed Apr 27 02:56:57 EDT 2005
mod_python,ÄúºÃ£¡ Thank Nicolas and Graham! The solution(I use the one Nicolas gives) is: ======= 2005-04-27 05:28:47 ÄúÔÚÀ´ÐÅÖÐдµÀ£º======= >Adding that the reason is that you have specified the original >PythonHandler >definition outside of any <Directory> directive in your configuration >file. > >Quote from previous bug report from this for more detail: > > The problem is caused by the way you have set up the Apache config >file. > > If you do not specify AddHander/PythonHandler outside of a Directory > directive it will work okay. > > Ie., use: > > # Enable debug under /psp directory > <Directory /var/www/html/psp> > AddHandler mod_python .psp > AddHandler mod_python .psp_ > PythonHandler mod_python.psp > PythonDebug On > </Directory> > > If you specify AddHandler outside of the a Directory directive, when >doing: > > dirpath = self._req.hlist.directory > > the dirpath variable will be set to None, which then cannot be indexed. > > The Session code should possibly check for this strange case, noting >though > that what you did in the first place is probably not recommended and >could > break other things as well. > >The previous case was for PSP, but same thing if you use publisher >handlers. > >As Nicolas indicated, you can also set ApplicationPath explicitly if >for some >reason you can't do things inside of a <Directory> directive. > >On 27/04/2005, at 6:36 AM, Nicolas Lehuen wrote: > >> Hi, >> >> If you have the same problem, then the same solution applies. Just add >> a line in your httpd.conf or .htaccess file containing : >> >> PythonOption ApplicationPath '/' >> >> Regards, >> Nicolas >> >> On 4/26/05, ºúÐËÑó <hu.007 at 163.com> wrote: >>> Hello! >>> >>> How to solve this problem? I have the same. >>> mine: FreeBSD5.4rc3 + apache2.0.53 + python2.3 + >>> mod_python3.1.4. >>> >>> http://www.modpython.org/pipermail/mod_python/2005-January/ >>> 017113.html >>> >>> Thanks! >>> >>> _______________________________________________ >>> 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 > > = = = = = = = = = = = = = = = = = = = = ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Ö Àñ£¡ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Xingyang Hu ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hu.007 at 163.com ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2005-04-27
|