shithub: werc

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