From 821cc0565b986dfc50ce5af75cdc2b2187321fd7 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 17 Sep 2014 19:05:31 +0000 Subject: first test for mod_perl for authtoken diff --git a/README b/README index 89d737b..8dddeca 100644 --- a/README +++ b/README @@ -1,8 +1,9 @@ Installation ============ -# sudo aptitude install apache2 libjs-jquery rivendell-server -# sudo a2enmod ssl authnz_ldap +# sudo aptitude install apache2 libapache2-mod-perl2 libjs-jquery rivendell-server +# sudo a2enmod ssl authnz_ldap perl +# sudo /etc/init.d/apache2 restart add the following to /etc/apache2/mods-endabled/ldap.conf: @@ -31,6 +32,10 @@ add the following to the virtualhost config: Include /etc/rivendell/apache.conf + SetHandler perl-script + PerlResponseHandler ModPerl::Registry + PerlOptions +ParseHeaders + Options +ExecCGI Order deny,allow Deny from All AuthName "Radio Helsinki - Automation Import" diff --git a/authtoken.json b/authtoken.json old mode 100644 new mode 100755 index 4722a17..96342ef --- a/authtoken.json +++ b/authtoken.json @@ -1,4 +1,9 @@ -{ - "username": "test", - "token": "SDLIIBqCypa3bIRQEv9GMAPF4GHqelBD" -} +#!/usr/bin/perl + +print "Content-type: text/plain\n\n"; +print "mod_perl 2.0 rocks!\n"; + +//{ +// "username": "test", +// "token": "SDLIIBqCypa3bIRQEv9GMAPF4GHqelBD" +//} -- cgit v0.10.2