Login Loop

I am trying to configure a new RT4 installation on an existing server that is already hosting another site.

My RT_SiteConfig.pm has the following settings:

Set( $WebBaseURL, ‘https://webserver.ken.com’);
Set( $WebPort, 443);
Set( $WebPath, ‘/rt4’);

My Apache2 configuration is as follows:

ServerAdmin webmaster@localhost
    LogLevel warn
    CustomLog /var/log/apache2/ssl_access.log combined

    SSLEngine on
    SSLCertificateFile    crtfile
    SSLCertificateKeyFile keyfile

    DocumentRoot "/data/site1/extras/www"
    WSGIScriptAlias /site1 /data/site1/site.wsgi

AuthType Basic
AuthName “Google Authenticator Code”
AuthBasicProvider “google_authenticator”
Require valid-user
GoogleAuthUserPath /etc/apache2/2factor
GoogleAuthCookieLife 3600
GoogleAuthEntryWindow 2

Alias /rt4/ /opt/rt4/share/html/

<Directory /opt/rt4/share/html/>
Order allow,deny
Allow from all

    SetHandler modperl
               PerlResponseHandler Plack::Handler::Apache2
                PerlSetVar psgi_app /opt/rt4/sbin/rt-server
use Plack::Handler::Apache2; Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");

I can access /site1 no problem, when I try to access /rt4 I get a redirect loop error as the browser cycles through a bunch of next=ids. The rt error log shows:

Reason: your browser did not supply a Referrer header (/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:397)
[Thu May 2 02:58:29 2013] [notice]: Marking original destination as having side-effects before redirecting for login.
Request: /rt4/NoAuth/Login.html?next=c9b6650e44159f2832c5dc436ccc4ca7
Reason: your browser did not supply a Referrer header (/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:397)
[Thu May 2 02:58:29 2013] [notice]: Marking original destination as having side-effects before redirecting for login.
Request: /rt4/NoAuth/Login.html?next=35f158bbe5c75a9996c62aae1d0aa163
Reason: your browser did not supply a Referrer header (/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:397)
[Thu May 2 02:58:29 2013] [notice]: Marking original destination as having side-effects before redirecting for login.
Request: /rt4/NoAuth/Login.html?next=036240bcec8f468eaaaa830aeb0f79f8
Reason: your browser did not supply a Referrer header (/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:397)

Any help would be appreciated

Ken Towne
KennethMTowne@eaton.commailto:KennethMTowne@eaton.com

My RT_SiteConfig.pm has the following settings:****


Set( $WebBaseURL, ‘https://webserver.ken.com’);****

Set( $WebPort, 443);****

Set( $WebPath, ‘/rt4’);****

**

Above is incorrect. From RT config’s documentation:

1005 =item C<$WebBaseURL>, C<$WebURL>
1006
1007 Usually you don’t want to set these options. The only obvious reason
1008 is if RT is accessible via https protocol on a non standard port, e.g.
1009 ‘https://rt.example.com:9999’. In all other cases these options are
1010 computed using C<$WebDomain>, C<$WebPort> and C<$WebPath>.
1011

So you have incorrect WebBaseURL and not set WebDomain.

Best regards, Ruslan.

Ruslan,

I removed WebBaseURL and added WebDomain, restarted apache, but still receive the same error:

Set( $WebDomain, ‘webserver.ken.com’);
Set( $WebPort, 443);
Set( $WebPath, ‘/rt4’);

Thoughts?

My RT_SiteConfig.pm has the following settings:

Set( $WebBaseURL, ‘https://webserver.ken.com’);
Set( $WebPort, 443);
Set( $WebPath, ‘/rt4’);

Above is incorrect. From RT config’s documentation:

1005 =item C<$WebBaseURL>, C<$WebURL>
1006
1007 Usually you don’t want to set these options. The only obvious reason
1008 is if RT is accessible via https protocol on a non standard port, e.g.
1009 ‘https://rt.example.com:9999’. In all other cases these options are
1010 computed using C<$WebDomain>, C<$WebPort> and C<$WebPath>.
1011

So you have incorrect WebBaseURL and not set WebDomain.

Best regards, Ruslan.

Ruslan,

I removed WebBaseURL and added WebDomain, restarted apache, but still
receive the same error:

Set( $WebDomain, ‘webserver.ken.com’);
Set( $WebPort, 443);
Set( $WebPath, ‘/rt4’);

Thoughts?

Your Apache config isn’t setup for /rt4. Please read
Web deployment - RT 5.0.5 Documentation - Best Practical,
particularly the last section.