Changes between Initial Version and Version 1 of faq/security/cgi-basic-auth


Ignore:
Timestamp:
Oct 28, 2010, 9:02:43 PM (9 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/security/cgi-basic-auth

    v1 v1  
     1= How do I get my PHP/perl/etc. cgi script to access the username and password passed via HTTP basic auth? =
     2
     3Our web server allows members to [wiki:password_protect_directory password protect a directory] using what is called HTTP Basic Authentication.
     4
     5However, by default, the username and password entered will not be accessible by cgi scripts, such as PHP or perl scripts.
     6
     7If you would like this information to be available, you will need to edit your web configuration via the [https://members.mayfirst.org/cp Members Control panel], adding:
     8
     9{{{
     10RewriteEngine On
     11RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
     12}}}