summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2014-09-17 19:05:31 (GMT)
committerChristian Pointner <equinox@helsinki.at>2014-09-17 19:05:31 (GMT)
commit821cc0565b986dfc50ce5af75cdc2b2187321fd7 (patch)
treeaa74c42d31c995dd9eca79d0da6cb0aed7820513
parentbe222e65e50b5583ee077520675cf7bf242f9392 (diff)
first test for mod_perl for authtoken
-rw-r--r--README9
-rwxr-xr-x[-rw-r--r--]authtoken.json13
2 files changed, 16 insertions, 6 deletions
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
<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"
+//}