quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Carlos Rodrigo Garcia <jrodr...@xpyro.com>
Subject 1 page Not Found -SOLVED
Date Tue, 08 Apr 2003 05:58:05 GMT
After a week or so of trial and error I have discovered
that a conventional web structure with an Apache 
configuration like this:

<VirtualHost *:80>
 ServerName test.com 
 AddHandler python-program .py 
 PythonHandler mod_python.publisher
 DirectoryIndex index.py
</VirtualHost>

Will lead to disaster.
It is impossible to set up a file like:

 A: /index.py

And later:

 N: /test/index.py

mod_python thinks that those pages are the same
and does pretty funny things basically:
: shows page B when a request asks for page A
  says 404 not found lots of times

Anyway, an easy workaround to this feature is not 
to NOT NAME any page the same way in all your web 
space (At least using the publisher handler).

Then you've got to setup an 'index' page at / and
use  'DirectoryIndex' in the Apache configuration.

Anyway mod_python rocks. But it needs a simpler 
and simpler set-up.

Thanks.




Mime
View raw message