[rt-users] FW: rt-mailgate 302 Error. No, not Plack.

Jourdan Perla jkperla at ucdavis.edu
Thu Mar 15 14:21:13 EDT 2012


Missed a Location in /etc/request-tracker3.8/apache2-modperl2.conf


<Location /rt/REST/1.0/NoAuth>
    Order Allow,Deny
    Allow from rt.myserver.com
</Location>

Did the trick.

-Jourdan


-----Original Message-----
From: Jourdan Perla 
Sent: Thursday, March 15, 2012 10:44 AM
To: rt-users at lists.bestpractical.com
Subject: RE: [rt-users] rt-mailgate 302 Error. No, not Plack.

Using 3.8 since there are no RT4 packages for Ubuntu 10.4 LTS. Attempts to manually install RT4 on Lucid would result in a whole 'nother ticket. Plan was to run 3.8 for now, then migrate to 4 on 12 this winter once things had settled down here.

No https redirects going on. I am using CAS Authentication (via mod_auth_cas) for the main site.


----Apache httpd.conf----
LoadFile /usr/lib/libcurl.so
LoadModule auth_cas_module /usr/lib/apache2/modules/mod_auth_cas.so
<IfModule mod_auth_cas.c>
CASLoginURL https://cas.myserver.com/cas/login
CASValidateURL https://cas.myserver.com/cas/serviceValidate
CASCertificatePath /etc/ssl/certs/my_cas_bundle.pem CASCookiePath /var/cache/apache2/mod_auth_cas/ CASSSOEnabled On CASValidateServer On CASDebug Off </IfModule>

<Directory /usr/share/request-tracker3.8/html/>
 <IfModule mod_auth_cas.c>
   AuthType CAS
   AuthName " CAS"
 </IfModule>
   Require valid-user
</Directory>
<Directory /usr/share/request-tracker3.8/html/NoAuth/*>
   AllowOverRide None
   Satisfy Any
</Directory>
<Directory /usr/share/request-tracker3.8/html/REST/1.0/NoAuth/*>
   AllowOverRide None
   Allow from all
   Satisfy Any
</Directory>
<Location /NoAuth/*>
   Order allow,deny
   Allow from all
   Satisfy Any
</Location>
<Location /REST/1.0/NoAuth/*>
   Order allow,deny
   Allow from all
   Satisfy Any
</Location>
<LocationMatch "/NoAuth">
    Satisfy Any
    Allow from all
</LocationMatch>

-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Kevin Falcone
Sent: Wednesday, March 14, 2012 4:49 PM
To: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] rt-mailgate 302 Error. No, not Plack.

On Wed, Mar 14, 2012 at 09:43:47PM +0000, Jourdan Perla wrote:
> 
> An Error Occurred
> =================
> 
> 302 Found
> 
> /usr/bin/rt-mailgate: undefined server error

This is Apache issuing a 302 before it gets to RT

> Grep all my logs for what happens at the same time and....
> apache2/access.log:
> rt.myserver.com - - [14/Mar/2012:14:05:33 -0700] "POST /rt/REST/1.0/NoAuth/mail-gateway HTTP/1.1" 302 715 "-" "libwww-perl/6.04"
> 
> I've got the following in my httpd.conf
> 
> <Directory /usr/share/request-tracker3.8/html/NoAuth/*>
>    AllowOverRide None
>    Satisfy Any
> </Directory>
> <Directory /usr/share/request-tracker3.8/html/REST/1.0/NoAuth/*>
>    AllowOverRide None
>    Allow from all
>    Satisfy Any
> </Directory>
> <Location "/rt/NoAuth/">
>    Order allow,deny
>    Allow from all
>    Satisfy Any
> </Location>
> <Location "/rt/REST/1.0/NoAuth/">
>    Order allow,deny
>    Allow from all
>    Satisfy Any
> </Location>

What else do you have in apache.  Are you redirecting from http to https?  Since you're using the debian packages, what else is going on there.  Also, this is where I feel compelled to ask why you're using
3.8 rather than 4.0 for a new install.

-kevin



More information about the rt-users mailing list