[pkg-lighttpd] nicer Debian Policy Manual, Section 11.5 handling

Shot (Piotr Szotkowski) shot at hot.pl
Mon Feb 13 17:11:55 UTC 2006


Currently, /etc/lighttpd.conf sports the following:

#### handle Debian Policy Manual, Section 11.5. urls
alias.url = (
  "/doc/" => "/usr/share/doc/",
  "/images/" => "/usr/share/images/"
)
## and by default allow them only from localhost
$HTTP["url"] =~ "^/(doc|images)/" {
        dir-listing.activate = "enable"

        $HTTP["remoteip"] != "127.0.0.1" {
                url.access-deny = ( "" )
        }
}

In my local setup, I use http://mysql/ to host PHPMyAdmin, http://pgsql/
to host PHPPgAdmin, http://drupal/ to host drupal, etc., so I have to
comment out the above (otherwise http://pgsql/images/ doesn’t work).

I’m far from being a lighttpd configuration czar, but maybe both the
Policy and me could be satisfied by wrapping the above in something
like this:

$HTTP["host"] == "localhost" {
  …
}

-- Shot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-lighttpd-maintainers/attachments/20060213/30a54a55/attachment.pgp


More information about the pkg-lighttpd-maintainers mailing list