[plug] Apache Problems

Anthony J. Breeds-Taurima tony at cantech.net.au
Mon Feb 28 14:13:27 WST 2000


On Mon, 28 Feb 2000, Christian wrote:

> Hi all,
> 
> I'm trying to work out how I can get the username provided through HTTP
> authentication and pass it to a CGI.  I figure it's part of the headers
> of the environment or something so I'm trying to run the standard
> test-env shell script from a directory that has a .htaccess file (it
> appears that .htaccess files are ignored in the cgi-bin directory) so I
> can work it out.

http://www.apache.org/docs/misc/FAQ.html#remote-user-var
> 
> Unfortunately I can't seem to get Apache to execute CGI scripts in a
> directory other than the ScriptAlias.  If I configure:
> 
> <Directory  /home/staff/again/public_html/>
> AddHandler cgi-script cgi
                        ^ .... I think there needs to ba a "." here
ie AddHandler cgi-script .cgi

> Can anyone suggest a) how to find out the HTTP username from a CGI
> script and/or b) Why Apache is not doing what I want?

I think if you re-read the apache FAQ and try changing the "AddHandler" stuff 
it should work.

Yours Tony.




More information about the plug mailing list