I mentioned this as part of a separate post as I thought it was related
to my other issues in that post (SSL), but it is not.

I keep getting the following errors when using the web UI. Here's one
case just now where I logged in as root at https://alms2.foo.com/ and
was then immediately thrown an error:

    [15332] [Tue Aug 12 15:55:24 2014] [info]: Successful login for root
from 1xx.xx.x.165 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:816)
    [15332] [Tue Aug 12 15:55:24 2014] [error]: Can't locate object
method "host" via package "URI::_foreign" at
/opt/rt4/sbin/../lib/RT/Interface/Web.pm line 935.

Visiting https://alms2.mitre.org/ shows I *did* login as root though.

Previously, Kevin Falcone had said:

    "This is RT trying to issue the redirect after login, what URL did
    you use to access RT and what was the next parameter."

I had replied:

    I'm not sure what you mean by "what was the next parameter".

    The site was accessed (then and just now) directly as
    https://alms2.foo.com/

    The browser just reports the generic "An internal RT error
    occurred. Your administrator..." (etc).

And the thread went the direction of the real other problem (SSL).

Thoughts?

====================================================================

# Versions

Apache httpd 2.2.15-31 (RHEL 6.5 package)
RT 4.2.6
RT-Authen-ExternalAuth 0.21
mod_fastcgi 2.4.6

====================================================================

# The only relevant thing I can see in my RT_SiteConfig.pm

Set($WebDomain, 'alms2.foo.com');
Set($WebPort, '443');

====================================================================

# Apache config

LoadModule fastcgi_module modules/mod_fastcgi.so
FastCgiIpcDir /tmp

<VirtualHost alms2.foo.com:80>
  # Redirect 80 to 443
  ServerName alms2.foo.com
  RewriteEngine On
  RewriteOptions Inherit
  RewriteCond %{HTTPS} off
  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>

<VirtualHost alms2.foo.com:443>
  ServerName alms2.foo.com:443
  #
  # Lots of SSL configuration redacted here.
  #
  FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5 -idle-timeout 300
  DocumentRoot "/opt/rt4/share/html"
  Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images
  <Location /NoAuth/images >
    SetHandler default-handler
  </Location>
  ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/
  AddDefaultCharset UTF-8
  <Location />
    Order allow,deny
    Allow from all
    Options +ExecCGI
    AddHandler fcgid-script fcgi
  </Location>
</VirtualHost>

====================================================================
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training

Reply via email to