Re: how to disable mod_perl in a subdir? Directory vs Location

2002-02-28 Thread Dan Baker



Rick Myers wrote:
> 
> On Feb 27, 2002 at 21:14:00 -0700, Dan Baker wrote:
> >
> > I am working with a host that has everything under /cgi-bin running
> > mod_perl by default, and well as using EmbPerl to run the dynamic pages.
> 
> This begs the question, how are they doing that?
> 
> I mean, if they're using Location's or File's then you're
> going to have to bend to their whim since those override
> Directory's.
> 
--

hhmmm, so if they have set up in httpd.conf:

  Alias /cgi-bin/ /home/seniordiscounts/cgi-bin/
  
SetHandler perl-script
#PerlHandler Apache::PerlRun
PerlHandler Apache::Registry
Options +ExecCGI
  

then the non mod_perl section:


  SetHandler default-handler
  AddHandler cgi-script .pl
  AllowOverride All
 

will be overidden? I guess then I should add an alias line and switch to
using Location ?

Dan



Re: how to disable mod_perl in a subdir?

2002-02-28 Thread Dan Baker

the host has that commented out for some reason:
  Alias /cgi-bin/ /home/seniordiscounts/cgi-bin/
  
SetHandler perl-script
#PerlHandler Apache::PerlRun
PerlHandler Apache::Registry
Options +ExecCGI
  

please explain how PerlRun might be better?
---

Marc Slagle wrote:
> 
> Maybe you can try Apache::PerlRun instead of Apache::Registry for the
> directories that you need to run those scripts.  The perldocs show how to
> set it up.
> 
> Marc Slagle
> 
> - Original Message -
> From: "Dan Baker" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 27, 2002 11:14 PM
> Subject: how to disable mod_perl in a subdir?
> 
> > I am working with a host that has everything under /cgi-bin running
> > mod_perl by default, and well as using EmbPerl to run the dynamic pages.
> > Unfortunately, I have a set of scripts that really need "regular" perl,
> > and I can't seem to figure out the configuration to  disable mod_perl in
> > a specific directory that needs
> > regular perl. ;(
> >
> > I tried this in the httpd.conf file:
> > 
> >   SetHandler default-handler
> >   AddHandler cgi-script .pl
> >   AllowOverride All
> > 
> >
> > and then ALSO editted a .htaccess file in
> > /home/mydomain/cgi-bin/webadmin/ to include:
> >   options +ExecCGI
> >   RemoveHandler perl-script
> >   SetHandler cgi-script
> >   AddHandler cgi-script .pl
> >
> > and it still tries to use mod_perl?!
> >
> > SERVER_SOFTWARE = Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1
> > OpenSSL/0.9.6 mod_perl/1.24_01
> >
> > PLEASE let me know if there is a way to configure so that a specific
> > sub-dir uses regular perl.
> >
> > Dan
> >



how to disable mod_perl in a subdir?

2002-02-27 Thread Dan Baker

I am working with a host that has everything under /cgi-bin running
mod_perl by default, and well as using EmbPerl to run the dynamic pages.
Unfortunately, I have a set of scripts that really need "regular" perl,
and I can't seem to figure out the configuration to  disable mod_perl in
a specific directory that needs
regular perl. ;( 

I tried this in the httpd.conf file:

  SetHandler default-handler
  AddHandler cgi-script .pl
  AllowOverride All
 

and then ALSO editted a .htaccess file in
/home/mydomain/cgi-bin/webadmin/ to include:
  options +ExecCGI
  RemoveHandler perl-script
  SetHandler cgi-script 
  AddHandler cgi-script .pl

and it still tries to use mod_perl?!

SERVER_SOFTWARE = Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1
OpenSSL/0.9.6 mod_perl/1.24_01 

PLEASE let me know if there is a way to configure so that a specific
sub-dir uses regular perl.

Dan