durusmail: quixote-users: [PATCH] fix for mod_python Dirtectory/VirtualHost
Having Quixote serve entire website
2004-05-04
2004-05-04
[PATCH] fix for mod_python Dirtectory/VirtualHost
2004-05-05
Shahms King (2 parts)
Re: [PATCH] fix for mod_python Dirtectory/VirtualHost
2004-05-05
Re: [PATCH] fix for mod_pythonDirtectory/VirtualHost
2004-05-05
2004-05-05
2004-05-05
[PATCH] fix for mod_python Dirtectory/VirtualHost
Shahms King
2004-05-05
Attached is a patch which "fixes" Quixote and mod_python when used from
a VirtualHost or Directory directive.  I've tested it using both typical
and bizarrely 'Alias'ed setups inside and outside of virtual hosts and
everything I found works correctly.  I'm not making any promises though
;-P  Essentially, it tries to figure out what parts of 'SCRIPT_NAME'
really belong in PATH_INFO and moves them accordingly.  After that it
checks to see if the current script is being served from 'DOCUMENT_ROOT'
and, if so, assumes it's handling the entire site and sets up
SCRIPT_NAME and PATH_INFO accordingly.  I'd appreciate some testing.

The second "hunk" of the patch fixes the config file reading, and I've
heard that's already been changed in CVS.
--
Shahms King 
reply