Lo Folks,

I am trying to set up Mason with Multiviews. My httpd.conf has the usual gubbins and the following:

<Directory />
    Options FollowSymLinks MultiViews Includes ExecCGI
    AllowOverride None
</Directory>

NameVirtualHost *
<VirtualHost *>
    ServerName theconfused.co.uk
    DocumentRoot /document/root
    PerlSetVar MasonCompRoot /mason/comp/root
    PerlSetVar MasonDataDir  /mason/data

    <LocationMatch "(\.m(c|html|txt|pl)|(d|auto)handler)$">
        SetHandler perl-script
        PerlInitHandler Apache::Constants::NOT_FOUND
    </LocationMatch>

    <Location "/">
        SetHandler perl-script
        PerlHandler HTML::Mason::ApacheHandler
    </Location>

    <LocationMatch "^/resource">
        SetHandler default-handler
    </LocationMatch>

    <LocationMatch "^/cgi-bin)">
        SetHandler None
    </LocationMatch>
</VirtualHost>

The ISP has a pile of cgi scripts in /cgi-bin that are used for management so I can't get rid of it and I can't rename it but I don't want to serve it through mason. Resource is css, js and image files and are all served fine.

With this configuration if I have a page, for example, test.html and I request it with http://www.theconfused.co.uk/test then I receive the file is handled by mason as is the index file is. The cgi file is not found however as mason is trying to find it in the document root and it ain't there.

If I change the directive to set the mason handler to this:

    <LocationMatch "(\.html|\.txt|\.pl)$">
        SetHandler perl-script
        PerlHandler HTML::Mason::ApacheHandler
    </LocationMatch>

Then the test.html file is not served through mason when http:// www.theconfused.co.uk/test is requested, although the content is served. The cgi script, however, works fine.

Anyone got any ideas as to how I could do this or should I just abandon it as a lost cause.

Thanks for help.

Kevin



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to