You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by indrek siitan <tf...@cafe.ee> on 2000/03/14 23:08:55 UTC

Embperl pages without .html extension + MultiViews

Hi,

has anybody used Embperl together with MultiViews? 

somewhy, when Embperl is set as PerlHandler on documents using
MultiViews and without the .html extension, Apache doesn't output
content type.

with the following configuration:

--- 8< ---

<Files *.html>
   DefaultType text/html
   SetHandler  perl-script
   PerlHandler HTML::Embperl
   Options     ExecCGI MultiViews
</Files>

<Files album>
   DefaultType text/html
   SetHandler  perl-script
   PerlHandler HTML::Embperl
   Options     ExecCGI MultiViews
</Files>

--- 8< ---

everything works for .html files, but DefaultType doesn't apply
for the album script and IE kindly asks me to save this file.
If i remove MultiViews, everything is OK.


Rgds,
  Tfr

  --==< tfr@cafe.ee >==< http://tfr.cafe.ee/ >==< +1-504-4467425 >==-- 

RE: Embperl pages without .html extension + MultiViews

Posted by Gerald Richter <ri...@ecos.de>.
Hi,
> 
> has anybody used Embperl together with MultiViews? 
> 
> somewhy, when Embperl is set as PerlHandler on documents using
> MultiViews and without the .html extension, Apache doesn't output
> content type.
> 

You can try to add a

[- $req_rec -> content_type ('text/html') -]

to your page

Gerald


> with the following configuration:
> 
> --- 8< ---
> 
> <Files *.html>
>    DefaultType text/html
>    SetHandler  perl-script
>    PerlHandler HTML::Embperl
>    Options     ExecCGI MultiViews
> </Files>
> 
> <Files album>
>    DefaultType text/html
>    SetHandler  perl-script
>    PerlHandler HTML::Embperl
>    Options     ExecCGI MultiViews
> </Files>
> 
> --- 8< ---
> 
> everything works for .html files, but DefaultType doesn't apply
> for the album script and IE kindly asks me to save this file.
> If i remove MultiViews, everything is OK.
> 
> 
> Rgds,
>   Tfr
> 
>   --==< tfr@cafe.ee >==< http://tfr.cafe.ee/ >==< +1-504-4467425 >==-- 
> 



-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------