Re: files with same ext, but different handler based on partial name

2001-02-27 Thread Vivek Khera

> "ABH" == Ask Bjoern Hansen <[EMAIL PROTECTED]> writes:

ABH> the mod_perl'ish way would be to make a PerlTransHandler and in that
ABH> configure the handler at runtime, based on filename, time of day 
ABH> and the latest weather report.

You forgot the most important: phase of the moon.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.Khera Communications, Inc.
Internet: [EMAIL PROTECTED]   Rockville, MD   +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/



Re: files with same ext, but different handler based on partial name

2001-02-27 Thread Ask Bjoern Hansen

On Sun, 25 Feb 2001, Surat Singh Bhati wrote:

> Hi,
>   I want to do configure my mod_perl as:
> 
> "All the files having extension .cgi should be run as 
> standard CGI, except *fixname*.cgi , if any file match
> *fixname*.pl , it should run as mod_perl. "

the mod_perl'ish way would be to make a PerlTransHandler and in that
configure the handler at runtime, based on filename, time of day 
and the latest weather report.

:-)

 - ask

-- 
ask bjoern hansen - 
more than 70M impressions per day, 




Re: files with same ext, but different handler based on partial name

2001-02-26 Thread ___cliff rayman___

check out:
http://www.apache.org/docs-2.0/mod/core.html#filesmatch

make sure you also see the "see also".  ;-)

by the way, this is standard apache configuration stuff that
has nothing to do with mod_perl.

--
___cliff [EMAIL PROTECTED]http://www.genwax.com/

Surat Singh Bhati wrote:

> Hi,
> I want to do configure my mod_perl as:
>
> "All the files having extension .cgi should be run as
> standard CGI, except *fixname*.cgi , if any file match
> *fixname*.pl , it should run as mod_perl. "
>
> Is it possible to files having the same ext , but depend
> on partial file name , apache consider them differently,
> files may be located any where not in a special directory.
>
> I wat to do something like:
>
> 
> SetHandler perl-script
> PerlHandler Apache::Registry
> PerlSendHeader On
> Options +ExecCGI
> 
> AddHandler cgi-script .cgi
>
> Is it possible?
>
> Regards,
>
> -Surat Singh Bhati