changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / rc/bin/rc-httpd/handlers/authorize

revision 4342: 74455da2d86a
     1.1new file mode 100755
     1.2--- /dev/null
     1.3+++ b/rc/bin/rc-httpd/handlers/authorize
     1.4@@ -0,0 +1,6 @@
     1.5+#!/bin/rc
     1.6+if(~ $REMOTE_USER ''){
     1.7+	extra_headers=($extra_headers 'WWW-Authenticate: Basic realm="'$"SERVER_NAME'"')
     1.8+	error 401
     1.9+	exit
    1.10+}