summaryrefslogtreecommitdiff
path: root/rc/bin/rc-httpd/handlers/authorize
blob: ea4db3ef757d31d0b39caf23b915efa112a11077 (plain)
1
2
3
4
5
6
#!/bin/rc
if(~ $REMOTE_USER ''){
	extra_headers=($extra_headers 'WWW-Authenticate: Basic realm="'$"SERVER_NAME'"')
	error 401
	exit
}