diff options
Diffstat (limited to 'rc/bin/rc-httpd/handlers/authorize')
-rwxr-xr-x | rc/bin/rc-httpd/handlers/authorize | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rc/bin/rc-httpd/handlers/authorize b/rc/bin/rc-httpd/handlers/authorize new file mode 100755 index 000000000..ea4db3ef7 --- /dev/null +++ b/rc/bin/rc-httpd/handlers/authorize @@ -0,0 +1,6 @@ +#!/bin/rc +if(~ $REMOTE_USER ''){ + extra_headers=($extra_headers 'WWW-Authenticate: Basic realm="'$"SERVER_NAME'"') + error 401 + exit +} |