Created
June 23, 2011 21:09
-
-
Save j0k3r/1043634 to your computer and use it in GitHub Desktop.
http auth on *_dev.php file for lighttpd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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