You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Batara Kesuma <bk...@ml.gaijinweb.com> on 2003/05/31 06:41:55 UTC

[users@httpd] Excluding SetHandler

Hi,

How can I exclude a directory from SetHandler? I have:

<Directory /var/www/html>
<FilesMatch "\.(cgi|pl)$">
  SetHandler perl-script
  PerlHandler ModPerl::PerlRun
  PerlOptions +ParseHeaders
  Options +ExecCGI
</FilesMatch>
</Directory>

<Directory /var/www/html/no_perl>
  SetHandler None
</Directory>

I want to exclude /var/www/html/no_perl, I tried to set SetHandler to
None, but it seems like it doesn't work :( How can I fix this? 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Excluding SetHandler

Posted by Rich Bowen <rb...@rcbowen.com>.
On Sat, 31 May 2003, Batara Kesuma wrote:

> Hi,
>
> How can I exclude a directory from SetHandler? I have:
>
> <Directory /var/www/html>
> <FilesMatch "\.(cgi|pl)$">
>   SetHandler perl-script
>   PerlHandler ModPerl::PerlRun
>   PerlOptions +ParseHeaders
>   Options +ExecCGI
> </FilesMatch>
> </Directory>
>
> <Directory /var/www/html/no_perl>
>   SetHandler None
> </Directory>
>
> I want to exclude /var/www/html/no_perl, I tried to set SetHandler to
> None, but it seems like it doesn't work :( How can I fix this?

<Directory /var/www/html/no_perl>
SetHandler default-handler
</Directory>

-- 
Pilgrim, how you journey on the road you chose
To find out where the winds die and where the stories go
 --Pilgrim (Enya - A Day Without Rain)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Excluding SetHandler

Posted by Joseph A Nagy Jr <jo...@charter.net>.
Batara Kesuma wrote:
> Hi,
> 
> How can I exclude a directory from SetHandler? I have:
> 
> <Directory /var/www/html>
> <FilesMatch "\.(cgi|pl)$">
>   SetHandler perl-script
>   PerlHandler ModPerl::PerlRun
>   PerlOptions +ParseHeaders
>   Options +ExecCGI
> </FilesMatch>
> </Directory>
> 
> <Directory /var/www/html/no_perl>
>   SetHandler None
> </Directory>
> 
> I want to exclude /var/www/html/no_perl, I tried to set SetHandler to
> None, but it seems like it doesn't work :( How can I fix this? 

Since it works on physical location, how about taking no perl out of 
/var/www/html (say, putting it in /var/www/) and aliasing it to where 
you need it?


-- 
Wielder of the mighty +1 LARTsaber of Unsubscribe Instructions At End of 
Message,
the +3 Clue-by-Four of No Attachments to a Mailing List,
and the -4 Shield of No Spell Checker


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org