From 9b15e2b2fe804f115c5f65ad510dc0daaaafd672 Mon Sep 17 00:00:00 2001
From: Christian Pointner <equinox@helsinki.at>
Date: Sat, 22 Aug 2015 01:23:54 +0200
Subject: improved apache config


diff --git a/README b/README
index 6faf316..7d34026 100644
--- a/README
+++ b/README
@@ -50,28 +50,24 @@ add the following to the virtualhost config:
 	Include /etc/apache2/conf-available/javascript-common.conf
 
 	Alias /rh-bin/ /var/www/rhwebimport/rh-bin/
-	<Location /rh-bin/>
+	<Directory /var/www/rhwebimport/rh-bin/>
 		SetHandler perl-script
 		PerlResponseHandler ModPerl::Registry
 		PerlOptions +ParseHeaders
 		Options +ExecCGI
 
 		Require all granted
-	</Location>
-	<Location /rh-bin/authtoken.json>
-		SetHandler perl-script
-		PerlResponseHandler ModPerl::Registry
-		PerlOptions +ParseHeaders
-		Options +ExecCGI
 
-		AuthName "Radio Helsinki - Automation Import"
-		AuthType Basic
-		AuthBasicProvider ldap
-		AuthLDAPUrl ldap://ldap.helsinki.at/ou=People,dc=helsinki,dc=at?uid TLS
+		<Files authtoken.json>
+			AuthName "Radio Helsinki - Automation Import"
+			AuthType Basic
+			AuthBasicProvider ldap
+			AuthLDAPUrl ldap://ldap.helsinki.at/ou=People,dc=helsinki,dc=at?uid TLS
 
-		Require all denied
-		Require valid-user
-	</Location>
+			Require all denied
+			Require valid-user
+		</Files>
+	</Directory>
 
 	ProxyPass "/ntp"  "ws://localhost:3000/ntp"
 
-- 
cgit v0.10.2