I am new to Mason. The application I'm using uses Mason. I am trying to have two web sites: production and development.
There are two separate web sites. There are two separate but nearly identical locations in the Linux file system. I am using SNI and VirtualHosts in apache2 on RHEL6. Mason is: $HTML::Mason::VERSION = '1.51'; I have little control over all this, but have managed to get the "production" site working. However, when I try to access the "development" section, I get nowhere. I get a "404 Not Found" error and this line in the apache2 error log file: [Mason] Cannot resolve file to component: /home/web/development/htdocs/index.html (is file outside component root?) at /usr/local/share/perl5/HTML/Mason/ApacheHandler.pm line 852. In the Mason mailing list archives there are several threads dealing with that error from 2002, 2003, 2004, 2005, but little more recent. There is this Perl package in the code: package Application::Mason; use HTML::Mason::ApacheHandler; my $ah = HTML::Mason::ApacheHandler->new ( args_method => "mod_perl", comp_root => "/home/web/development/htdocs", data_dir => "/home/web/development/htdocs/masondata", error_mode => 'output', ); sub handler { my ($r) = @_; return (-1) if $r->content_type && $r->content_type !~ m|^text/|i; return $ah->handle_request ($r); } 1; And this configuration snippet for apache2: <VirtualHost 10.0.0.8> ServerName development.xxx.yyy.zzz PerlModule HTML::Mason::ApacheHandler <Perl> use lib qw( /home/web/development/lib ); use Application::Mason; </Perl> <Directory /home/web/application/htdocs/> <FilesMatch .> SetHandler perl-script PerlHandler Application::Mason </FilesMatch> <FilesMatch (\.css|\.js)$> SetHandler default-handler </FilesMatch> </Directory> </VirtualHost> The "production" configuration is largely similar, differing mainly in the IP address and ServerName, and the file system pathnames. One works, the other doesn't. I don't understand. There are no files in the /home/web/development/htdocs/masondata directory unlike in the same location of the "production" site: linux# ls -al /home/web/development/htdocs/masondata/obj total 8K drwxrwxr-x. 2 root root 4096 Sep 18 14:25 . drwxr-xr-x. 4 root root 4096 Sep 18 14:25 .. -rw-r--r--. 1 root root 0 Sep 18 14:25 .__obj_create_marker One of the above mentioned threads spoke about this: PerlSetVar MasonMultipleConfig true but another thread said this was no longer necessary. Can anyone suggest what I am doing wrong, or not doing right? Regards, web... -- William Bulley Email: w...@umich.edu 72 characters width template ----------------------------------------->| ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users