Hi,

have either set a ScriptAlias like

-------------------8<-------------------
ScriptAlias /cgi-bin/ "/var/www/main/sub/cgi-bin/"
-------------------8<-------------------

or an AddHandler

-------------------8<-------------------
AddHandler cgi-script .cgi
-------------------8<-------------------

set?

Where from should apache know what do with the file? The default handler
simply delivers every file.

Tom

Chad Arimura wrote:
Thanks Stas.  That makes sense, but when I set the handler to
default-handler, running the cgi in a browser just displays the code of the
script on the screen...  do you know what I'm missing?

chad


-----Original Message-----
From: Stas Bekman [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 3:57 PM
To: Chad Arimura
Cc: [EMAIL PROTECTED]
Subject: Re: Turning off modperl in specific directories


Chad Arimura wrote:



I setup our server to handle requests through mod_perl with the following
directive:



<Directory "/var/www/main">

Options FollowSymLinks ExecCGI

Order allow,deny

Allow from all



<FilesMatch "\.(cgi|pl)$">

SetHandler perl-script

PerlHandler Apache::Registry

</FilesMatch>

</Directory>



There is a subdirectory underneath there that I do NOT want mod_perl to
handle. specifically:



<Directory "/var/www/main/sub">

           Turn off here.

</Directory>



Is there something that I can use in there to handle the scripts through
reg. CGI?


Let the guide be with you:
http://perl.apache.org/docs/1.0/guide/config.html#Overriding_E_lt_LocationE_
gt__Setting_in__Sub_Location_



--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to