From cced06410d981803eee63796235fc3f64ff309f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 18 Jan 2006 10:15:28 +0000 Subject: [PATCH] Add info about Apache CGI and http auth (patch #1375495). --- ChangeLog | 4 ++++ Documentation.html | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0a6e9d1cc2..651caf253c 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2006-01-18 Michal Čihař + * Documentation.html: Add info about Apache CGI and http auth (patch + #1375495). + 2006-01-17 Sebastian Mendel * libraries/database_interface.lib.php: fixed bug: undefined index with empty database in db structure view diff --git a/Documentation.html b/Documentation.html index 1ee3f4ea52..7e65f08b98 100755 --- a/Documentation.html +++ b/Documentation.html @@ -371,7 +371,8 @@ GRANT SELECT, INSERT, UPDATE, DELETE ON <pma_db>.* TO 'pma'@'localhost';
  • Introduced in 1.3.0, it uses Basic HTTP authentication method and allows you to login as any valid MySQL user.
  • Is supported with most PHP configurations. For IIS (ISAPI) support - using CGI PHP, see FAQ 1.32.
  • + using CGI PHP see FAQ 1.32, for using with + Apache CGI see FAQ 1.35.
  • See also FAQ 4.4 about not using the .htaccess mechanism along with 'http' authentication mode.
  • @@ -2800,6 +2801,19 @@ RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)$ index.php?db=$1&table=$2 [R] RewriteRule ^([a-zA-Z0-9_]+)$ index.php?db=$1 [R] + +

    + [1.35] Can I use HTTP authentication with Apache CGI? +

    +

    + Yes. However you need to pass authentication variable to CGI using + following rewrite rule: +

    +
    +RewriteEngine On
    +RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
    +
    +

    [2. Configuration]