Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Add or overwrite the Authorization header before passing any request on to the endpoint. The authorization header can be hard coded, it's just a base-64 encoding of the string "username:password" (without the quotes.)</p> <p>Enable the mod_headers module if not already done.</p> <pre><code>RequestHeader set Authorization "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" </code></pre> <p>To perform this conditionally, enable the mod_setenvif, e.g. still ask for the master password in the case of local requests:</p> <pre><code>SetEnvIf Remote_Addr "127\.0\.0\.1" localrequest RequestHeader set Authorization "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" env=!localrequest </code></pre> <ul> <li><a href="http://en.wikipedia.org/wiki/Basic_access_authentication" rel="noreferrer">http://en.wikipedia.org/wiki/Basic_access_authentication</a></li> <li><a href="http://httpd.apache.org/docs/2.0/mod/mod_headers.html" rel="noreferrer">http://httpd.apache.org/docs/2.0/mod/mod_headers.html</a></li> <li><a href="http://httpd.apache.org/docs/2.0/mod/mod_setenvif.html" rel="noreferrer">http://httpd.apache.org/docs/2.0/mod/mod_setenvif.html</a></li> </ul> <p><strong>EXAMPLE</strong></p> <pre><code># ALL remote users ALWAYS authenticate against reverse proxy's # /www/conf/passwords database # &lt;Directory /var/web/pages/secure&gt; AuthBasicProvider /www/conf/passwords AuthType Basic AuthName "Protected Area" Require valid-user &lt;/Directory&gt; # reverse proxy authenticates against master server as: # Aladdin:open sesame (Base64 encoded) # RequestHeader set Authorization "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload