shithub: riscv

ref: 4d3367d11f03639da12829df103c4b6c5ecc78ac
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
}