Enable once/public
authorHeiko Schlittermann <hs@schlittermann.de>
Tue, 29 Dec 2015 23:39:11 +0100
changeset 70 4aee8dec908d
parent 69 342819c70918
child 71 604c7024d7ae
Enable once/public
configs/apache.conf
--- a/configs/apache.conf	Tue Dec 29 22:59:42 2015 +0100
+++ b/configs/apache.conf	Tue Dec 29 23:39:11 2015 +0100
@@ -1,25 +1,37 @@
 # -> /etc/apache2/conf.d
 
+
 # The directory where the files are stored,
 # it needs to be writable by the web server user (wwwrun, www-data,
 # who ever)
 # SentEnv may go into the <Directory>...</Directory>
 SetEnv ONCE_VAR /var/lib/once/
+
+
 # Action may go into <Location>...</Location>
-Action once-handler /once-handler/once.pl virtual
+Action once-handler /once-handler/once.cgi virtual
 
 # Order of location blocks matters!
 <Location "/once">
 	SetHandler once-handler
 </Location>
+<Location "/once/public">
+	SetHandler none
+</Location>
 
 #<Location "/once/d">
 #	SetHandler once-download-handler
 #	Action once-download-handler /once-handler/download.pl virtual
 #</Location>
 
+Alias /once/public 	   /usr/local/lib/once/public
+<Directory "/usr/local/lib/once/public">
+	Require all granted
+	Allow from all
+</Directory>
+
+
 ScriptAlias /once-handler/ /usr/local/lib/once/
-
 <Directory "/usr/local/lib/once">
 	Require all granted
 	Allow from all