Add info about Apache CGI and http auth (patch #1375495).
This commit is contained in:
parent
0ae8842353
commit
cced06410d
@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2006-01-18 Michal Čihař <michal@cihar.com>
|
||||
* Documentation.html: Add info about Apache CGI and http auth (patch
|
||||
#1375495).
|
||||
|
||||
2006-01-17 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||
* libraries/database_interface.lib.php:
|
||||
fixed bug: undefined index with empty database in db structure view
|
||||
|
||||
@ -371,7 +371,8 @@ GRANT SELECT, INSERT, UPDATE, DELETE ON <pma_db>.* TO 'pma'@'localhost';
|
||||
<li>Introduced in 1.3.0, it uses Basic HTTP authentication method and
|
||||
allows you to login as any valid MySQL user.</li>
|
||||
<li>Is supported with most PHP configurations. For IIS (ISAPI) support
|
||||
using CGI PHP, see <a href="#faq1_32">FAQ 1.32</a>.</li>
|
||||
using CGI PHP see <a href="#faq1_32">FAQ 1.32</a>, for using with
|
||||
Apache CGI see <a href="#faq1_35">FAQ 1.35</a>.</li>
|
||||
<li>See also <a href="#faq4_4">FAQ 4.4</a> about not using the
|
||||
<i>.htaccess</i> mechanism along with 'http' authentication mode.</li>
|
||||
</ul>
|
||||
@ -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]
|
||||
</pre>
|
||||
|
||||
<a name="faq1_35"></a>
|
||||
<h4>
|
||||
[<a href="#faq1_35">1.35</a>] Can I use HTTP authentication with Apache CGI?
|
||||
</h4>
|
||||
<p>
|
||||
Yes. However you need to pass authentication variable to CGI using
|
||||
following rewrite rule:
|
||||
</p>
|
||||
<pre>
|
||||
RewriteEngine On
|
||||
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
|
||||
</pre>
|
||||
|
||||
<a name="faqconfig"></a><br />
|
||||
<h3>[2. Configuration]</h3>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user