How to disable directory listing in lighttpd?

I'm using lighttpd (version 1.4.20) on Linux and I have directory listing enabled in my configuration file:
`dir-listing.activate = "enable"`
But I want to disable it for Zenphoto galeries (especially for password-secured directories). Although I tried several combinations, I have no clue how to do it. This is one of my unsuccessful attempts, which should exclude ~/public_html/secret_gallery from directory listing:
`dir-listing.exclude = ("^\.", "~$", "~/secret_gallery($|/)")`

Did you already find a solution how to do it?

Comments

  • acrylian Administrator, Developer
    Sorry, I don't know anything about lighttpd. Why don't you ask your host (if you are not selfhosting), mine has an backend option for that.?
  • m1c4a1 Member
    It's because I'm the host. :-)
    Maybe someone experienced with lighttpd find this thread someday. :-)
Sign In or Register to comment.