diff -r 1a695ff398e9 -r aa14588b4232 configs/apache.conf --- a/configs/apache.conf Fri Nov 20 18:13:33 2015 +0100 +++ b/configs/apache.conf Tue Nov 24 22:03:31 2015 +0100 @@ -1,15 +1,27 @@ # -> /etc/apache2/conf.d - - SetHandler once-upload-handler - Action once-upload-handler /once-handler/upload.pl virtual - + +# 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 ... +SetEnv ONCE_VAR /var/lib/once/ +# Action may go into ... +Action once-upload-handler /once-handler/upload.pl virtual - - AllowOverride AuthConfig Limit Options - AddHandler cgi-script .pl - +# Order of location blocks matters! + + SetHandler once-upload-handler + - - SetHandler once-download-handler - Action once-download-handler /once-handler/download.pl virtual - +# +# SetHandler once-download-handler +# Action once-download-handler /once-handler/download.pl virtual +# + +ScriptAlias /once-handler/ /usr/local/lib/once/ + + + Require all granted + Allow from all + Options ExecCGI FollowSymlinks +