~kris/9p

krisyotam.net

ref: a21515ab7032f3d982b4cc0864177532e480a02c krisyotam.net/bin/contrib/rc-httpd/handlers/authorize -rwxr-xr-x 134 bytes
a21515ab — Kris Yotam expand resources, add grid section, update footer 4 months ago
                                                                                
1
2
3
4
5
6
#!/bin/rc
if(~ $REMOTE_USER ''){
	extra_headers=($extra_headers 'WWW-Authenticate: Basic realm="'$"SERVER_NAME'"')
	error 401
	exit
}