Torsten Foertsch wrote: > > On Wed 21 May 2008, fof wrote: >> I have had problems before when mod_perl seems to override various >> behavior >> in Apache. For example when using a PerlAuthenHandler it seemed to wipe >> out >> the standard DirectoryIndex directive which the main webserver had set to >> index.htm etc. This caused a problem when visiting the root directory as >> it >> would not serve up the default index page. To fix this I had to add a >> PerlFixUpHandler which restored some default settings. > > A Perl authentication handler if correctly designed does not interfere > with a > DirectoryIndex. It should also work smoothly inside a Location or > Directory > block or from a .htaccess file. So I suspect your problem lies in the code > of > your handler. (Are you fiddling with $r->filename or depending on > $r->location?) But without insight in that code I think nobody can help. > > Torsten > >
Hi Torsten, Thanks again for your reply. You might be right, I am probably not doing things correctly although I don't believe I am doing anything fancy. I can't see where I might be fiddling with the objects you mentioned. I have uploaded my MyAuthenHandler.pm and the modules it relies on for configuration perhaps if you have time you could peruse the code and let me know if I am doing anything wrong for this type of operation. Thanks again for your help on this. http://www.nabble.com/file/p17356582/MyAuthenHandler.pm MyAuthenHandler.pm http://www.nabble.com/file/p17356582/MyModPerlUtility.pm MyModPerlUtility.pm http://www.nabble.com/file/p17356582/MyModPerlDBUtility.pm MyModPerlDBUtility.pm -- View this message in context: http://www.nabble.com/PerlAuthenHandler-and-ErrorDocument-401-tp17330888p17356582.html Sent from the mod_perl - General mailing list archive at Nabble.com.