FAQ
I believe you want "cgi-script" instead of "default-handler".

Drew

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
Sent: Thursday, May 20, 2004 3:57 PM
To: Chad Arimura
Cc: modperl@perl.apache.org
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_

--
----------------------------------------------------------------
Drew Taylor * Web development & consulting
Email: drew@drewtaylor.com * Site implementation & hosting
Web : www.drewtaylor.com * perl/mod_perl/DBI/mysql/postgres
----------------------------------------------------------------


--
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

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 9 of 10 | next ›
Discussion Overview
groupmodperl @
categoriesmodperl, perl
postedMay 20, '04 at 10:48p
activeMay 24, '04 at 10:33p
posts10
users6
websiteperl.apache.org

People

Translate

site design / logo © 2022 Grokbase