From 91275eb478ceb58083426099b6da3f4c7e189f19 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 04:50:01 +0200 Subject: Merging debian version 1.9.4-1. Signed-off-by: Daniel Baumann --- debian/vendor-h2o/doc/configure/basic_auth.html | 101 ------------------------ 1 file changed, 101 deletions(-) delete mode 100644 debian/vendor-h2o/doc/configure/basic_auth.html (limited to 'debian/vendor-h2o/doc/configure/basic_auth.html') diff --git a/debian/vendor-h2o/doc/configure/basic_auth.html b/debian/vendor-h2o/doc/configure/basic_auth.html deleted file mode 100644 index 7c3825c..0000000 --- a/debian/vendor-h2o/doc/configure/basic_auth.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - -Using Basic Authentication - Configure - H2O - the optimized HTTP/2 server - - -
-
- -

-H2O -

-

the optimized HTTP/1.x, HTTP/2 server

- - -
- -
- -
-
-
-Powered by Oktavia -
-
- - -
- - - - - - - - - - - - -
- -

-Configure > -Using Basic Authentication -

- - -

-Starting from version 1.7, H2O comes with a mruby script named htpasswd.rb that implements Basic Authentication. -The script provides a Rack handler that implements Basic Authentication using password files generated by the htpasswd command. -

- -

-Below example uses the mruby script to restrict access to the path. -If authentication fails, the mruby handler returns a 401 Unauthorized response. -If authentication succeeds, the handler returns a 399 response, and the request is delegated internally to the next handler (i.e. file.dir). -

- -
-
Example. Configuring HTTP authentication using htpasswd.rb
-
paths:
-  "/":
-    mruby.handler: |
-      require "htpasswd.rb"
-      Htpasswd.new("/path/to/.htpasswd", "realm-name")
-    file.dir: /path/to/doc_root
-
-
- - -

-In H2O versions prior to 2.0, you should specify "#{$H2O_ROOT}/share/h2o/mruby/htpasswd.rb" as the argument to require, since the directory is not registered as part of $LOAD_PATH. -

- -For convenience, the mruby script also forbids access to files or directories that start with .ht. - - - - -
- - - -- cgit v1.2.3