[merged] once
authorheiko
Fri, 20 Nov 2015 17:53:15 +0100
branchonce
changeset 42 106c6ee5ae32
parent 41 8211c7cdf8e0 (diff)
parent 39 55ec9b096bc8 (current diff)
child 43 f5c765ad2765
[merged]
upload.pl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Fri Nov 20 17:53:15 2015 +0100
@@ -0,0 +1,2 @@
+.htaccess
+d/
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/apache.conf	Fri Nov 20 17:53:15 2015 +0100
@@ -0,0 +1,14 @@
+    <Location "/once">
+        SetHandler once-upload-handler
+        Action once-upload-handler /once-handler/upload.pl virtual
+    </Location>
+
+    <Directory "$DOCUMENTROOT/once-handler">
+        AllowOverride AuthConfig Limit Options
+        AddHandler cgi-script .pl
+    </Directory>
+
+    <Location "/once/d">
+        SetHandler once-download-handler
+        Action once-download-handler /once-handler/download.pl virtual
+    </Location>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/d/dot.htaccess	Fri Nov 20 17:53:15 2015 +0100
@@ -0,0 +1,6 @@
+# needs AllowOverride AuthConfig Options
+Options None Indexes ExecCGI FollowSymlinks
+<Files "*">
+    Order allow,deny
+    allow from 127.0.0.1
+</Files>
--- a/dot.htaccess	Mon Dec 08 11:47:52 2014 +0100
+++ b/dot.htaccess	Fri Nov 20 17:53:15 2015 +0100
@@ -1,8 +1,17 @@
 # needs AllowOverride AuthConfig Options
-Options -Indexes
-<Files ~ "^(upload\.pl|^\.ht)">
-	AuthType Basic
-	AuthName upload
-	Require valid-user
-	AuthUserFile <place your htpasswd file path here>
+Options None Indexes ExecCGI FollowSymlinks
+<Files "*">
+    Order deny,allow
+    deny from all
+    satisfy all
 </Files>
+<Files "upload.pl">
+    AuthType Basic
+    AuthName upload
+    Require valid-user
+    AuthUserFile <FOO>/htpasswd
+    Order allow,deny
+</Files>
+<Files "download.pl">
+    Order allow,deny
+</Files>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/download.pl	Fri Nov 20 17:53:15 2015 +0100
@@ -0,0 +1,1 @@
+upload.pl
\ No newline at end of file