shithub: werc

ref: c80186385969913ab78f27d3aad7f9f4bcaa12df
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
}