[rt-users] rt-mailgate/apache 404/405 errors

pmcferrin at lucent.com pmcferrin at lucent.com
Fri Aug 6 17:38:47 EDT 2004


I'm using RT3.0.10 with Apache 1.3.31 & mod_perl along
with fetchmail.

When fetchmail executes rt-mailgate, I get the following
in Apache error log:

  [Fri Aug  6 13:12:43 2004] [error] [client] File does not exist: /bld/RT/apache/htdocs//REST/1.0/NoAuth/mail-gateway                                  
and access_log has: - - [06/Aug/2004:13:12:41 -0400] "POST //REST/1.0/NoAuth/mail-gateway HTTP/1.1" 404 315                                                              

The problem is that "htdocs" is NOT defined as the DocumentRoot of
my virtual server.  Here is the lines from httpd.conf:

        ServerName bison.cb.lucent.com    
        DocumentRoot /bld/RT/share/html   
        AddDefaultCharset UTF-8           
#       PerlModule Apache2 Apache::compat 
        PerlModule Apache::DBI            
        PerlRequire /bld/RT/bin/webmux.pl 
        <Location />                      
                SetHandler perl-script    
                PerlHandler RT::Mason     

So I decided to create a symbolic link in htdocs to REST

   $ cd /bld/RT/apache/htdocs
   $ ln -s /bld/RT/share/html/REST REST

Now the "404" error turns into a "405" error with the following
error message in fetchmail log (from rt-mailgate):

  405 Method Not Allowed

I guess my questions are:

	1. How did the reference to /bld/RT/apache/htdocs occurr ??
	2. Why didn't the symbolic link fix the problem?
	3. Where else did I screw up?

There were no new entries in rt.log for this event.
I noticed that rt-mailgate has many references to "http://localhost"

-Paul McFerrin

More information about the rt-users mailing list