git: 9front

ref: 98e7f36f706c21d015af5001a643c0bb64a7aa5d
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
}