[rt-users] RT 3.8.1/lighttpd problems

Bob Micheletto bob.micheletto at kaplan.com
Tue Jan 27 19:42:36 EST 2009


It was suggested that I send along my lighttpd.conf, thanks for looking
into this!

 

lighttpd.conf:

 

server.modules              = (

                                "mod_access",

                                "mod_fastcgi",

                                "mod_accesslog" )

 

server.document-root        = "/usr/local/rt3/share/html"

server.errorlog             = "/var/log/lighttpd/error.log"

 

index-file.names            = ( "index.php", "index.html",

                                "index.htm", "default.htm" )

 

mimetype.assign             = (

  ".pdf"          =>      "application/pdf",

  ".sig"          =>      "application/pgp-signature",

  ".spl"          =>      "application/futuresplash",

  ".class"        =>      "application/octet-stream",

  ".ps"           =>      "application/postscript",

  ".torrent"      =>      "application/x-bittorrent",

  ".dvi"          =>      "application/x-dvi",

  ".gz"           =>      "application/x-gzip",

  ".pac"          =>      "application/x-ns-proxy-autoconfig",

  ".swf"          =>      "application/x-shockwave-flash",

  ".tar.gz"       =>      "application/x-tgz",

  ".tgz"          =>      "application/x-tgz",

  ".tar"          =>      "application/x-tar",

  ".zip"          =>      "application/zip",

  ".mp3"          =>      "audio/mpeg",

  ".m3u"          =>      "audio/x-mpegurl",

  ".wma"          =>      "audio/x-ms-wma",

  ".wax"          =>      "audio/x-ms-wax",

  ".ogg"          =>      "application/ogg",

  ".wav"          =>      "audio/x-wav",

  ".gif"          =>      "image/gif",

  ".jar"          =>      "application/x-java-archive",

  ".jpg"          =>      "image/jpeg",

  ".jpeg"         =>      "image/jpeg",

  ".png"          =>      "image/png",

  ".xbm"          =>      "image/x-xbitmap",

  ".xpm"          =>      "image/x-xpixmap",

  ".xwd"          =>      "image/x-xwindowdump",

  ".css"          =>      "text/css",

  ".html"         =>      "text/html",

  ".htm"          =>      "text/html",

  ".js"           =>      "text/javascript",

  ".asc"          =>      "text/plain",

  ".c"            =>      "text/plain",

  ".cpp"          =>      "text/plain",

  ".log"          =>      "text/plain",

  ".conf"         =>      "text/plain",

  ".text"         =>      "text/plain",

  ".txt"          =>      "text/plain",

  ".dtd"          =>      "text/xml",

  ".xml"          =>      "text/xml",

  ".mpeg"         =>      "video/mpeg",

  ".mpg"          =>      "video/mpeg",

  ".mov"          =>      "video/quicktime",

  ".qt"           =>      "video/quicktime",

  ".avi"          =>      "video/x-msvideo",

  ".asf"          =>      "video/x-ms-asf",

  ".asx"          =>      "video/x-ms-asf",

  ".wmv"          =>      "video/x-ms-wmv",

  ".bz2"          =>      "application/x-bzip",

  ".tbz"          =>      "application/x-bzip-compressed-tar",

  ".tar.bz2"      =>      "application/x-bzip-compressed-tar",

  # default mime type

  ""              =>      "application/octet-stream",

 )

 

accesslog.filename          = "/var/log/lighttpd/access.log"

url.access-deny             = ( "~", ".inc" )

 

$HTTP["url"] =~ "\.pdf$" {

  server.range-requests = "disable"

}

 

static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

server.pid-file            = "/var/run/lighttpd.pid"

server.username            = "apache"

server.groupname           = "apache"

 

$HTTP["host"] =~ "rtd2\.int\.kp\.com" {

  # Specify the documentroot

  server.document-root = "/opt/rt3/share/html"

 

  # Map appropriate files and extensions

  fastcgi.map-extensions = ( ".css" => ".html", ".js" => ".html", "/" =>
".html", "mail-gateway" => ".html", "Search/Chart" => ".html",
"Search/Results.rdf" => ".html", "Search/Results.tsv" => ".html", ".doc"
=> ".html", ".zip" => ".html", ".7z" => ".html", ".jpg" => ".html",
".xls" => ".html", ".bmp" => ".html", ".gif" => ".html" )

 

  # Set Lighttpd to check for an index.html file for each directory

  index-file.names = ( "index.html" )

 

  # Disallow access to .mhtml files

  url.access-deny = ( ".mhtml" )

 

  setenv.add-environment = (

       "SCRIPT_NAME" => "/",

  )

 

  # Set up an alias for the /NoAuth/images location

  #url.rewrite-once = (

  #     "^/(?!NoAuth/images/)(.*)" => "/$1",

  #)

 

  # Add trailing slash so attachment downloads work

  url.rewrite-once = (

       #"^/(?!NoAuth/images/)(.*)" => "/$1",

        "^(.*)/Ticket/Attachment/(.*)" => "/$1/Ticket/Attachment/$2/"

  )

 

  # Set up FastCGI handler

  fastcgi.server = ( ".html" =>

     ((

        "socket"        => "/tmp/rt-fcgi.socket",

        "bin-path"      => "/opt/rt3/bin/mason_lighttpd_handler.fcgi",

        "check-local"   => "disable",

        "min-procs"     => 2,

        "max-procs"     => 10

      ))

  )

}

 

From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Bob
Micheletto
Sent: Friday, January 23, 2009 5:37 PM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] RT 3.8.1/lighttpd problems

 

Hello,

 

I've been trying to migrate an installation from RT 3.4.4 over to 3.8.1
on a new machine, and running into a bit of trouble.  The initial build
using the production database works fine.  However, 

when I make the jump to go live, and migrate to the latest copy of the
production database to the new server things go awry.  The pages load at
first, but after a short period start failing.

 

The following is a typical log entry in the lighttpd error log:

2009-01-23 15:11:09: (mod_fastcgi.c.2618) FastCGI-stderr: [Fri Jan 23
21:11:03 2009] [info]: Successful login for bmicheletto from 10.30.3.42
(/usr/local/rt3/share/html/autohandler:273)

2009-01-23 15:50:19: (mod_fastcgi.c.1768) connect failed: Connection
refused on unix:/tmp/rt-fcgi.socket-9

2009-01-23 15:50:19: (mod_fastcgi.c.2956) backend died; we'll disable it
for 5 seconds and send the request to another backend instead:
reconnects: 0 load: 1

 

Any ideas?

 

Thanks,

 

Bob Micheletto

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090127/1a5afc95/attachment.htm>


More information about the rt-users mailing list