shithub: werc

ref: 6ea76e42f2a70a5cb89ffbf4c0e1681f391182d5
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
}