Fix apache config
authorHeiko Schlittermann <hs@schlittermann.de>
Tue, 17 Oct 2017 17:28:05 +0200
changeset 91 75a06e057016
parent 88 689be4f785ef
child 92 a09a3ae04dcf
Fix apache config
bin/once
configs/apache.conf
--- a/bin/once	Sat Jan 09 15:01:37 2016 +0100
+++ b/bin/once	Tue Oct 17 17:28:05 2017 +0200
@@ -1,4 +1,5 @@
 #! /usr/bin/perl -T
+#line 2
 # FIXME: UPDATE {{
 # Example .htaccess
 # | Options -Indexes
@@ -50,6 +51,9 @@
 use Template;
 use experimental qw(smartmatch lexical_topic);
 
+use lib "$Bin/../lib" =~ /(.*)/;
+use Once;
+
 my $DIST = basename $0, '.pl';
 
 sub humanize;     # convert numbers to human readable format
--- a/configs/apache.conf	Sat Jan 09 15:01:37 2016 +0100
+++ b/configs/apache.conf	Tue Oct 17 17:28:05 2017 +0200
@@ -14,8 +14,8 @@
 	Require all denied
     </Directory>
 
-    Action	once-handler	    /once-handler/once.cgi virtual
-    ScriptAlias /once-handler/	    $lib/
+    Action	once-handler	    /once-handler/once virtual
+    ScriptAlias /once-handler/	    $lib/bin/
     Alias	$location/static    $lib/static
 
     # Order of location blocks matters!