already tried this, Cliff :

Syntax error on line 36 of /usr/local/agora/conf/agora.conf:
<FilesMatch> cannot occur within <Location> section

and somethink like <FILESMATCH "/myDirectory/.*\.epl$">
doesn't work for HTML::EmbperlObject...

did you try it before to answer ? :-)

i tried to read the source code from Gerald Richter, but don't understand why
this doesn't work - it seems EMBPERL_OBJECT_BASE *must* be in a <Location
...> tag.

And with the following configuration :

    <FILES ".epl">
      SetHandler  perl-script
      PerlHandler HTML::Embperl
    </FILES>
    <FILES ".fpl">
      PerlHandler       Apache::Registry
      AddHandler        perl-script .fpl
      PerlSendHeader    off
    </FILES>
    <FILES ".cgi">
      AddHandler cgi-script .cgi
    </FILES>
    <Location /freebank>
      PerlSetEnv    EMBPERL_OBJECT_BASE _base.html
      PerlSetEnv    EMBPERL_FILESMATCH  "\.htm.?"
      AddHandler    perl-script .html
      PerlHandler   HTML::EmbperlObject
  ...

*.fpl (mod_perl) doen't work (of course, no Handler), and
*.cgi (standard CGI) and *.epl (Empperl) are not taken as EmbperlObject (of
course, but they work now...)


=> I don't understand.


Phil.


___cliff rayman___ a �crit :

> pf wrote:
>
> > Hi All,
> >
> > HTML::EmbperlObject is a really *great* tool. To use it properly, i have
> > some questions :
> >
> >     <Location /blabla>
> >       PerlSetEnv    EMBPERL_OBJECT_BASE _base.epl
> >       PerlSetEnv   EMBPERL_FILESMATCH  "\.epl$"
> >       SetHandler    perl-script
> >       PerlHandler   HTML::EmbperlObject
> >     </location>
> >
> > work fine, of course.
> >
> > But what i would like to do is to mix cgi, mod_perl, embperl and
> > EmbperlObject files in the same directory structure.
> >
> > for example to have *.opl for EmbperlObject, *.epl for embperl, *fpl for
> > mod_perl and standard *.cgi.
> >
> > Why ? Because sometimes, i have sometink like this :
> > _base.epl, which point to :
> > _head.html (static file)
> > my_frame.cgi (*not* a Embperl file !)
> > _foot.fpl (mod_perl file)
> >
> >
>
> <Location /blabla>
>    <FilesMatch "*\.opl$">
>       PerlSetEnv    EMBPERL_OBJECT_BASE _base.epl
>       SetHandler    perl-script
>       PerlHandler   HTML::EmbperlObject
>    </FilesMatch>
>    <FilesMatch "*\.epl>
>       SetHandler    perl-script
>       PerlHandler   HTML::Embperl
>    </FilesMatch>
>       etc. etc.
> --
> ___cliff [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to