--- 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