diff --git a/Caddyfile b/Caddyfile index 1fe8d46..a9977e3 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,5 +1,5 @@ %interface% { - basicauth { + basicauth / { %userpw% } log { output file /var/www/upload.log diff --git a/uploadpage/index.php b/uploadpage/index.php index 4d43aa1..4c96df7 100644 --- a/uploadpage/index.php +++ b/uploadpage/index.php @@ -17,7 +17,7 @@ $headers=getallheaders(); $authuser=$headers['X-User']; if($authuser!==''){ print(' -