shithub: werc

ref: 2dc40e7c55add5037002f469a3da4c0e953e0433
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
}