DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:htaccessauth

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
tips:htaccessauth [2011-11-02 09:53]
14.140.2.194
tips:htaccessauth [2013-09-12 09:04]
113.160.225.76
Line 5: Line 5:
  
 My DokuWiki is set up in a directory which is password protected by Apache, so this doesn't actually initialize 'HTTP authentication' but identifies users that have already logged in using that method of identification by means of a .htaccess file. In other words the actual authentication is done by Apache using the following .htaccess file: My DokuWiki is set up in a directory which is password protected by Apache, so this doesn't actually initialize 'HTTP authentication' but identifies users that have already logged in using that method of identification by means of a .htaccess file. In other words the actual authentication is done by Apache using the following .htaccess file:
-******KIRAN ADDED THIS PAGE****+
 <code> <code>
 AuthType Basic AuthType Basic
Line 738: Line 738:
  
 The module as provided only works if you are using mod_php.  It works fine without mod_php if you make the following changes: The module as provided only works if you are using mod_php.  It works fine without mod_php if you make the following changes:
 +[[plugin:keywordvoting|keywordvoting plugin]]
 <code php> <code php>
 if (isset($_SERVER['REMOTE_USER']) and !isset($_SESSION[$conf['title']]['auth']['info'])) $_REQUEST['u'] = $_SERVER['REMOTE_USER']; if (isset($_SERVER['REMOTE_USER']) and !isset($_SESSION[$conf['title']]['auth']['info'])) $_REQUEST['u'] = $_SERVER['REMOTE_USER'];
tips/htaccessauth.txt ยท Last modified: 2013-09-12 09:44 by 141.65.129.241