on 10/5/01 8:30 PM, Bill Shupp at [EMAIL PROTECTED] spake:

> on 10/5/01 8:24 PM, Jay at [EMAIL PROTECTED] spake:
> 
>> I looked in the file error_log for apache and noticed this:
>> [Fri Oct  5 18:24:13 2001] [error] [client 10.0.0.3] attempt to
>> invoke directory as script: /var/www/cgi-bin/qmailadmin
>> 
>> -----Original Message-----
>> From: Jay [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, October 05, 2001 6:15 PM
>> To: 'Jeff Garvas'
>> Cc: [EMAIL PROTECTED]
>> Subject: RE: cgi-bin/qmailadmindir permission error
>> 
>> 
>> Here is what is in my Script Alias Directive:
>> 
>> ScriptAlias /cgi-bin/ /var/www/cgi-bin/
>> ScriptAlias /protected-cgi-bin/ /var/www/protected-cgi-bin/
>> ScriptAlias /cgi-bin/qmailadmin/ /var/www/cgi-bin/qmailadmin/
>> ScriptAlias /cgi-bin/qmailadmin /var/www/cgi-bin/qmailadmin
>> 
>> I have copied the test-cgi script into my my cgi-bin and cgi-bin/qmailadmin
>> directories and it works properly.  When I run qmailadmin by loading
>> http://10.0.0.11/cgi-bin/qmailadmin/qmailadmin into my browser and then
>> attempting to login, I still receive the error: Forbidden
>> You don't have permission to access /cgi-bin/qmailadmin on this server.
>> and the address in my browser changes to
>> http://10.0.0.11/cgi-bin/qmailadmin.
> 
> Assuming the actual binary is cgi-bin/qmailadmin/qmailadmin, you might try
> this in Apache:
> 
> SetHandler cgi-script /var/www/cgi-bin/qmailadmin/

Er, wrong context... Sorry.  You would need to do this in an .htaccess file
or inside a location directive like this:

<Location /cgi-bin/qmailadmin>
    SetHandler cgi-script
</Location>

Bill

Reply via email to