git: 9front

ref: d3f04d40b421ce2d5a175b2c07afbe06a717d97d
dir: /rc/bin/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
}