Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@server01 httpdocs-apptconf]# cat app.fcgi
- #!/usr/bin/perl
- use lib '/var/www/vhosts/halo3.net/apps/Halo3-ApptConf/lib';
- use Dancer;
- use Halo3::ApptConf;
- use Plack::Builder;
- use FCGI::Engine::PSGI;
- builder {
- enable_if {
- my $env = shift;
- my $url = $env->{'REQUEST_URI'};
- return false if ($url =~ /^\/smsreply/);
- return false if ($url =~ /^\/smscallback/);
- return true;
- } 'Plack::Middleware::Auth::Basic', authenticator => \&Halo3::ApptConf::authenticate;
- dance;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement