shithub: werc

ref: b0e38afc8fa66a4d2a591b9c20f29956c9e1b4eb
dir: /bin/contrib/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
}