Created
August 18, 2014 20:17
-
-
Save vividsnow/7e27a3450473f6a38a4b to your computer and use it in GitHub Desktop.
service static w/ user/pass via plack
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
cpanm U Plack | |
# later | |
plackup -MU -MPlack::Builder -e 'builder { enable "Auth::Basic", authenticator => sub {$_[0].$_[1] eq 'a0b0'}; Plack::App::Directory->new->to_app }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment