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 revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tips:htaccessauth [2011-11-02 09:53] 14.140.2.194tips: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'];

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki