Alias /browse /home/insaniac/work/code/perl/
I'm not awake enough to parse through the rest of your problem, but let me start by saying two things.

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.


In reply to Re: [mod_perl] path_info() problem by merlyn
in thread [mod_perl] path_info() problem by insaniac

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.