diff options
-rw-r--r-- | README | 9 | ||||
-rwxr-xr-x[-rw-r--r--] | authtoken.json | 13 |
2 files changed, 16 insertions, 6 deletions
@@ -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 <Location /authtoken.json> + 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 index 4722a17..96342ef 100644..100755 --- 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" +//} |