Skip to content

Instantly share code, notes, and snippets.

@j0k3r
Created June 23, 2011 21:09
Show Gist options
  • Save j0k3r/1043634 to your computer and use it in GitHub Desktop.
Save j0k3r/1043634 to your computer and use it in GitHub Desktop.
http auth on *_dev.php file for lighttpd
$HTTP["url"] =~ "^/(front|back)end_dev"
{
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/path/to/.passwdstats"
auth.require =
( "" =>
(
"method" => "basic",
"realm" => "auth required",
"require" => "valid-user"
)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment