in reply to [mod_perl] path_info() problem
I'm not awake enough to parse through the rest of your problem, but let me start by saying two things.Alias /browse /home/insaniac/work/code/perl/
First, an "Alias" like that one is begging for trouble. You need to have both the left and right sides of an Alias either with a slash, or without. And if you put both (which is sometimes necessary), put the pair with a slash first. Keep in mind that Alias does a literal substitition.
Second, content handlers must be very careful about how they handle being passed a directory name. If you are handed a URL that maps to a directory name, but that URL does not end in a slash, you must return DECLINED, which will cause the core directory module to issue an external redirect to the user. The updated URL from the browser will synchronize the browser's view of the directory (now ending in a slash) with your view of the directory.
I have an example of this (including this description) in my mod_perl picture handler. Specifically, examine the code for line 95, and how you would end up there (especially the DIR_MAGIC_TYPE earlier).
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [mod_perl] path_info() problem
by insaniac (Friar) on May 10, 2005 at 10:09 UTC | |
by merlyn (Sage) on May 10, 2005 at 13:41 UTC | |
by insaniac (Friar) on May 11, 2005 at 08:37 UTC | |
by merlyn (Sage) on May 11, 2005 at 09:59 UTC | |
by insaniac (Friar) on May 11, 2005 at 11:02 UTC |