[rt-users] FastCGI, Trailing Slashes

Rich Lafferty rich+rt at lafferty.ca
Fri May 24 23:24:21 EDT 2002


On Fri, May 24, 2002 at 08:06:15PM -0500, Matt Disney (matthew.disney at fedex.com) wrote:
>
> So, I can go to http://rt.wherever.com/myqueue/ and that works 
> great. However, if I remove the trailing slash, I have a problem.
> Instead of the page I'm suspecting, I simply get a text message
> error:
> 
> "could not find component for initial path '/myqueue'"

I'm not sure how the myqueue/ part is implemented, but I had this
problem with http://www.wherever.com/rt not working, but /rt/ working.

I had:

ScriptAlias /rt /opt/rt2/bin/mason_handler.fcgi

I wanted:

ScriptAlias /rt /opt/rt2/bin/mason_handler.fcgi/

This required:

--- rt-orig/webrt/autohandler  Wed May  1 11:19:39 2002
+++ rt-esmith/webrt/autohandler      Wed May  1 11:59:57 2002
@@ -6,7 +6,7 @@
 $m->{'rt_base_time'} = time;
 
 #if it's a noauth file, don't ask for auth.
-if ($m->base_comp->path =~ '^/NoAuth/') {
+if ($m->base_comp->path =~ '^/+NoAuth/') {
         $m->call_next();
        $m->abort();
 }

Hope that helps,

  -Rich

-- 
Rich Lafferty --------------+-----------------------------------------------
 Ottawa, Ontario, Canada    |  Save the Pacific Northwest Tree Octopus!
 http://www.lafferty.ca/    |    http://zapatopi.net/treeoctopus.html
rich at lafferty.ca -----------+-----------------------------------------------




More information about the rt-users mailing list