git: 9front

ref: f90f03a2e03ae243a800e11d6e04a63781940b1f
dir: /rc/bin/rc-httpd/handlers/authorize/

View raw version
#!/bin/rc
if(~ $REMOTE_USER ''){
	extra_headers=($extra_headers 'WWW-Authenticate: Basic realm="'$"SERVER_NAME'"')
	error 401
	exit
}