You put the gif in the filesmatch.
Does Apache::AddrMunge know what to do with a gif file?
If not, then just have
<FilesMatch "html$">
and it will only handle the html files and leave the gif alone.
That is the whole idea of having the FilesMatch directive under
the Directory directive.
cliff rayman
genwax.com
nagaraj wrote:
> This message was sent from Geocrawler.com by "nagaraj" <[EMAIL PROTECTED]>
>
> Thanks Rayman,
> I added following script into httpd.conf :
>
> <Directory /home/httpd/cgi-bin/MY_BBS>
> <FilesMatch ".(html|gif)$">
> SetHandler perl-script
> PerlHandler Apache::AddrMunge
> </FilesMatch>
> </Directory>
>
> But still it shows broken gif.
> Following is the error I get when i execute the
> script or try to open my gif file MY_GIF.gif file
>
> [date] [error] Unrecognised character 342 at
> /home/httpd/cgi-bin/MY_BBS/MY_GIF.gif line 1.
>
> Do U have any suggestion ?.
> Regards,
> Nagaraj S.B.
>
> ---------------------------------------
> welcome to the list. most of your the answers to
> your questions
> can be found by looking in the mod_perl guide
> and/or by searching
> the archive for this mailing list. both can be
> navigated to by
> first going to http://perl.apache.org
>
> the answer to this particular problem can be found
> at the following:
> http://perl.apache.org/guide/config.html#Logical_g
> rouping_of_Location_Di
>
> good luck,
>
> cliff rayman
> genwax.com
>
> nagaraj wrote:
>
> > This message was sent from Geocrawler.com by
> "nagaraj" <[EMAIL PROTECTED]>
> > Be sure to reply to that address.
> >
> > Hi all,
> > This is my first mail to this list. When I run
> my
> > script it is not showing the image(it shows
> broken
> > image) even though syntex is correct. I think
> > httpd is intepreting this gif file as a perl
> > script!. How to over come this problem when I
> have
> > script and gifs residing in the same directory.
> >
> > Thanks in advance,
> > Nagaraj S.B.
> >
> > Geocrawler.com - The Knowledge Archive
>
>
>
> Geocrawler.com - The Knowledge Archive