thirdculture/werc/bin/contrib/rc-httpd/handlers/authorize

7 lines
134 B
Text
Raw Permalink Normal View History

2024-07-18 14:09:32 -04:00
#!/bin/rc
if(~ $REMOTE_USER ''){
extra_headers=($extra_headers 'WWW-Authenticate: Basic realm="'$"SERVER_NAME'"')
error 401
exit
}