[pkg-lighttpd] Bug#366801: lighttpd: /images redirected for all
servers
Paul
elegant_dice at yahoo.com
Thu May 11 07:11:31 UTC 2006
Package: lighttpd
Severity: normal
Hi,
The part of the default config file that says:
$HTTP["host"] == "localhost" {
global {
alias.url += (
"/doc/" => "/usr/share/doc/",
"/images/" => "/usr/share/images/"
)
}
dir-listing.activate = "enable"
}
screws up a simple rails install. eg, i bound lighty to my external IP
and added these lines (in a config file of course)
server.modules += ( "mod_fastcgi")
$HTTP["host"] =~ "(www\.)?website\.com" {
server.document-root = "/home/user/website/public/"
server.indexfiles = ( "index.html", "dispatch.fcgi" )
server.error-handler-404 = "/dispatch.fcgi"
server.errorlog = "/home/user/website/log/error.log"
accesslog.filename = "/home/user/website/log/access.log"
fastcgi.server = (
".fcgi" => (
"website" => (
"min-procs" => 1,
"max-procs" => 5,
"socket" => "/home/user/website/tmp/sockets/sock-fcgi",
"bin-path" => "/home/user/website/public/dispatch.fcgi",
)
)
)
}
and ANY images in the /public/images folder in my rails website (a
default website created by "rails /home/user/website") would NOT be
found.
Turns out, the /images/ alias was applied to the website.com definition
too - I guess thats what 'global' means?
So in short, this caused a lot of frustration. Can you ensure the
default config options don't get in the way in future, or at least add
a warning to the config file?
thanks
Paul
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686-smp
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
More information about the pkg-lighttpd-maintainers
mailing list