You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Marco Scoffier <ma...@metm.org> on 2005/06/14 15:49:43 UTC

embperl and mod_negotiation

Is anyone one using an Embperl Object site with mod_negotiation ?

I am trying to get _base.epl called when pages are named index.fr.html and
index.ja.html .  When I call the page directly it works.
  http://localhost/test/index.fr.html or 
  http://localhost/test/index.html.fr 
both get processed through _base.epl but if I call simple
  http://localhost/test/ 
expecting the negociation to happen, I get the correctly negotiated
index.html.fr but without having been processed through _base.epl.

The relevant sections of my httpd.conf:

<Location /test/>
        PerlHandler Embperl::Object 
        EMBPERL_OBJECT_BASE _base.epl
        EMBPERL_SESSION_HANDLER_CLASS "Embperl::Session"
        SetHandler  perl-script
        EMBPERL_URIMATCH "\.html"
        AddLanguage fr .fr
        AddLanguage en .en
        AddLanguage ja .ja
        DirectoryIndex index
        Options ExecCGI +MultiViews
</Location>


Relevant files in /test/ :

home/www/test/> ls
_base.epl  index.en.html  index.ja.html  index.fr.html   index.html.html  

I've tried with 
        EMBPERL_URIMATCH "(\.html|\.fr|\.ja|\.en)" 
but this does not change the results.

Thanks,

-- 
Marco

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


RE: embperl and mod_negotiation

Posted by Gerald Richter <ri...@ecos.de>.
> 
> Using Files works.
> 
> I wish I could use a Files within a Location, but I will have 
> to look into that.
> 

You could use Files within Directory, but not within Location

Gerald


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: embperl and mod_negotiation

Posted by 'Marco Scoffier' <ma...@metm.org>.
On Fri, Jun 17, 2005 at 09:29:55PM +0200, Gerald Richter wrote:
>Hi,
>
>> 
>> Is anyone one using an Embperl Object site with mod_negotiation ?
>> 
>
>I didn't have tried it, but does it changes anything if you use a
>
><Files *.html>
>
>Instead of <Location   >
>

Using Files works.

I wish I could use a Files within a Location, 
but I will have to look into that.

Thanks Gerald.


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


RE: embperl and mod_negotiation

Posted by Gerald Richter <ri...@ecos.de>.
Hi,

> 
> Is anyone one using an Embperl Object site with mod_negotiation ?
> 

I didn't have tried it, but does it changes anything if you use a

<Files *.html>

Instead of <Location   >

Gerald



> I am trying to get _base.epl called when pages are named 
> index.fr.html and index.ja.html .  When I call the page 
> directly it works.
>   http://localhost/test/index.fr.html or
>   http://localhost/test/index.html.fr
> both get processed through _base.epl but if I call simple
>   http://localhost/test/
> expecting the negociation to happen, I get the correctly 
> negotiated index.html.fr but without having been processed 
> through _base.epl.
> 
> The relevant sections of my httpd.conf:
> 
> <Location /test/>
>         PerlHandler Embperl::Object 
>         EMBPERL_OBJECT_BASE _base.epl
>         EMBPERL_SESSION_HANDLER_CLASS "Embperl::Session"
>         SetHandler  perl-script
>         EMBPERL_URIMATCH "\.html"
>         AddLanguage fr .fr
>         AddLanguage en .en
>         AddLanguage ja .ja
>         DirectoryIndex index
>         Options ExecCGI +MultiViews
> </Location>
> 
> 
> Relevant files in /test/ :
> 
> home/www/test/> ls
> _base.epl  index.en.html  index.ja.html  index.fr.html   
> index.html.html  
> 
> I've tried with 
>         EMBPERL_URIMATCH "(\.html|\.fr|\.ja|\.en)" 
> but this does not change the results.
> 
> Thanks,
> 
> --
> Marco
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org