On Fri, 9 Mar 2001, Fred Toth wrote:

> Hi,
>
> I'm lost on this one. I'm trying to install a simple handler that
> will get called on every request. My first try at this is:
>
> <Location />
>   SetHandler perl-script
>   PerlAccessHandler My::Access
> </Location>
>
> Right now the handler does nothing except write to the log
> and return DECLINED. It works fine.
>
> However, what does NOT work any longer is standard CGI
> (/cgi-bin/whatever). Instead of executing, my CGI script is
> returned to the browser.

Try adding:

<Location /cgi-bin/>
  Options +ExecCGI
</Location>

or even a complete section:

  Alias /cgi-bin /home/httpd/cgi-bin
  <Location /cgi-bin>
    SetHandler cgi-script
    Options +ExecCGI
  </Location>


> I'm guessing that somehow the location of "/" is overriding
> the ExecCGI-ness of /cgi-bin, but I don't know why, nor can
> I find any way of putting it back.
>
> If I remove the above Location block, CGI returns to normal.
>
> Can anyone explain this to me?
>
> Thanks,
>
> Fred Toth
> [EMAIL PROTECTED]
>



_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


Reply via email to