hi!
I'm now trying to write my 1st own mason handler. But I have a problem with
the component root.

My section in httpd.conf
------------------------
PerlModule  CH
<LocationMatch />
    SetHandler   perl-script
    PerlHandler  CH
</LocationMatch>
-----------

My CH.pm in /usr/local/apache
-----------------------------
package CH;
use strict;
use warnings;
use HTML::Mason::ApacheHandler;
my $ah =   HTML::Mason::ApacheHandler->new
(comp_root=>/usr/local/apache/htdocs/');

sub handler 
{    my ($r) = @_;
    return $ah->handle_request($r);  }
1;
--------------

After requesting (http://localhost/index.mas which exists in
/usr/local/apache/htdocs/index.mas I get in apache logfile:
------------------------------------------------------------
[Mason] Cannot resolve file to component: /usr/local/apache/htdocs/index.mas
(is file outside component root?) at
/usr/local/share/perl/5.8.4/HTML/Mason/ApacheHandler.pm line 853.
----------

What I'm wondering too:
-  a change of data_dir in the paramters of new will have effect. 
   A "PerlSetVar MasonDataDir xxx" in httpd.conf will have not 
   ????
- any definiton of comp_root (in new or in httpd.conf) will have no effect
  to the log output of apache (see aboves log)
  ???

any idea??

thanx
chris

-- 
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to