[rt-users] a tad OT, need assistance with aliasing /me to /SelfService

Izz Abdullah Izz.Abdullah at hibbett.com
Mon Feb 6 17:52:11 EST 2012


>From the code of Plack::Handler::Apache2

    if ($location eq '/') {
        # <Location /> could be handled as a 'root' case where we make
        # everything PATH_INFO and empty SCRIPT_NAME as in the PSGI spec
        $env->{SCRIPT_NAME} = '';
    } elsif ($path_info =~ s{^($location)/?}{/}) {
        $env->{SCRIPT_NAME} = $1 || '';
    } else {
        # Apache's <Location> is matched but here is not.
        # This is something wrong. We can only respect original.
        $r->server->log_error(
            "Your request path is '$path_info' and it doesn't match your Location(Match) '$location'. " .
            "This should be due to the configuration error. See perldoc Plack::Handler::Apache2 for details."


So the request is falling under the last option here.  Plack is not liking the way you have your config written for aliasing.  I would look at aliasing again in apache.

Alias /me/ "/opt/rt4/share/html/SelfService/
<Directory "/opt/rt4/share/html/SelfService/">
<Location />
...
...



-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Ronald J Yacketta
Sent: Monday, February 06, 2012 4:38 PM
To: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] a tad OT,need assistance with aliasing /me to /SelfService

>
> I know this isn't exactly the answer to your question, but when users 
> log in to RT, they'll be directed to SelfService if they are 
> Unprivileged users.  Are you trying to push Privileged users off to 
> SelfService, and if so, why not just make them Unprivileged?
>

/SelfService works flawlessly, we just have a requirement to redirect /me and /selfservice to /SelfService.

> Also - your Apache error log is often more useful to debug these 
> things than the error presented in your browser.
>

I checked the logs first before posting, which tossed this cryptic entry

[Mon Feb 06 15:55:22 2012] [error] Your request path is '/me/' and it doesn't match your Location(Match) '/opt/rt4/share/html/SelfService/'.
This should be due to the configuration error. See perldoc
Plack::Handler::Apache2 for details.

Looking at the perldoc does nothing but leave one even more bewildered.


> -kevin
>
>> here is the meat of our rt.conf
>>
>> <VirtualHost rt.potsdam.edu:443>
>> ... SSL stuff ...
>> Alias /me /SelfService
>> Alias /selfservice /SelfService
>> <Location />
>>         AllowOverride All
>>         Options ExecCGI FollowSymLinks
>>
>>         SetHandler modperl
>>         PerlResponseHandler Plack::Handler::Apache2
>>         PerlSetVar psgi_app /opt/rt4/sbin/rt-server
>>
>>         AuthLDAPURL ldap://xyz.potsdam.edu/o=some_o?uid
>>         AuthLDAPGroupAttribute memberUid
>>         AuthLDAPGroupAttributeIsDN off
>>         AuthName "Tracking System"
>>         AuthType Basic
>>         AuthBasicProvider ldap
>> </Location>
>>
>> <Perl>
>>         use Plack::Handler::Apache2;
>>         Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
>> </Perl>
>> </VirtualHost>
>>
>>
>> /SelfService works but /me results in 'The page you requested could 
>> not be found'
>>
>> Granted this is not a RT issue, just wondering if anyone sees 
>> something wrong or can help / point me in a direction to get this working.
>>
>> -Ron
>>
>> --------
>> RT Training Sessions 
>> (http://bestpractical.com/services/training.html)
>> * Boston  March 5 & 6, 2012
> --------
> RT Training Sessions (http://bestpractical.com/services/training.html)
> * Boston - March 5 & 6, 2012


--------
RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5 & 6, 2012



More information about the rt-users mailing list