Hi All,

I'm new to HTML::Mason.  And come across some issue using dhandler.  When
ever I access none existing <.html> file, dhandler get rendered and the page
display correctly.  But whenever I access none existing subdirectory, the
Browser return just the HTML source code instead of rendering the code and
display it.


I am using Apache2 & Mod_Perl2 with Mason.

Below is my apache2 setting:
      
         PerlModule HTML::Mason::ApacheHandler
        <Location /gallery>
            SetHandler perl-script
            PerlHandler HTML::Mason::ApacheHandler
        </Location>

        <LocationMatch "(\.html|\.htm)$">
            SetHandler perl-script
            PerlHandler HTML::Mason::ApacheHandler
        </LocationMatch>
        <LocationMatch "(\.mas|handler)$">
                SetHandler  perl-script
        #         PerlModule  Apache::Constants   # some how Appache doesn't
start when using this in here.
                PerlHandler "sub { return Apache::Constants::NOT_FOUND }"
        </LocationMatch>

        <Location /gallery/images>
           SetHandler default
         </Location>


Here are the paths of my site

<siteRoot>\autohandler
<siteRoot>\dhandler
<siteRoot>\index.html
<SiteRoot>\images\
<siteRoot>\gallery\dhandler
<siteRoot>\gallery\images

Now; 
http://localhost/index.   <-- This display fine
http://localhost/gallery/index.html <-- this display fine with none exist
index.html
http://localhost/gallery/subdir/index.html <-- FireFox and Opera return
source code, IE7 render the code and display the page.

Why is it that Firefox and Opera return just the code instead?

Thank you for your help.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to