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

Krzysztof Krzyzaniak eloy at kofeina.net
Tue Feb 14 16:20:53 UTC 2006


Shot (Piotr Szotkowski) wrote:
> 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" {
>> }

Right. Fixed in svn.

  eloy
-- 
-------e-l-o-y---------------------------e-l-o-y- at -k-o-f-e-i-n-a-.-n-e-t------

       jak to dobrze, że są oceany - bez nich byłoby jeszcze smutniej



More information about the pkg-lighttpd-maintainers mailing list