RE: [Mason] Problem: no-Content.
Oops my mistake the i do not have a problem accessing the '/' of the site but only when i try to access the "/mason" part of the site... PS. I have got the same problem with 0.87 (Bit i saw it had some installation problems) (I have not installed Version 0.88): # make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5. 6.0/sun4-solaris -I/usr/local/lib/perl5/5.6.0 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/01-syntax.ok t/02-sections...ok t/03-mc.ok t/04-misc...ok t/05-requestUse of uninitialized value in join at /clickly/compbst/HTML- Mason-0.87/test/data/request/obj/shared/check_error line 18. t/05-requestok 6/6FAILED test 5 Failed 1/6 tests, 83.33% okay t/06-parser.ok t/07-interp.ok t/08-ah.ok t/09-component..ok t/10-cache..NOK 3FAILED tests 1-3 Failed 3/3 tests, 0.00% okay t/11-inheritok Failed Test Status Wstat Total Fail Failed List of failed --- t/05-request.t61 16.67% 5 t/10-cache.t 33 100.00% 1-3 Failed 2/11 test scripts, 81.82% okay. 4/74 subtests failed, 94.59% okay. *** Error code 29 make: Fatal error: Command failed for target `test_dynamic' > HTML::Mason is your perlhandler in the /mason request space, so what's > supposed to handle a root object "/" request? Do a simple setup for one > virtualhost and make sure your choices of documentroot, alias settings and > component_root settings agree before broadening the solution for multiple > virtualhosts. Also, back down to Mason 0.87 until 0.89 is released. > -Ian > > > > Hello all, > > > > -- The Problem -- > > > > When i try try retrieve http://www.clickly.com/index.html > > (Test-Site: not the real clickly.com) i get a blank return and i > > mean a real blank content return (tried it with telnet to port 80 and > > the server only sends back the headers of the web-page?) > > > > Does anybody know what the problem is? I'va tried all sorts of > > things but nothing worked. > > > > Thanks in advance, > > Guido Moonen > > > > -- The Stuff i have -- > > > > * Solaris V 2.6 op Sun ultrasparc. > > * perl, v5.6.0 built for sun4-solaris > > * Server version: Apache/1.3.12 (Unix) > > Server built: Sep 6 2000 14:51:05 > > * mod_perl-1.24 > > * Mason v. 0.88 > > > > -- Handler.PL -- > > << SNIP >> > > my (%parsers, %interp, %ah); > > foreach my $site qw(www modified management) > > { $parsers{$site} = new HTML::Mason::Parser(allow_globals => > > [qw($dbh %session)]); > > > > $interp{$site} = new HTML::Mason::Interp (parser=>$parsers{$site}, > > > > comp_root=>"/clickly/html/$site/", > > > > data_dir=>"/clickly/masonhq/$site/", > > > system_log_events=>"ALL"); > > $ah{$site} = new > HTML::Mason::ApacheHandler(interp=>$interp{$site}); > > > > chown (scalar(getpwnam "nobody"), scalar(getgrnam "nobody"), > > $interp{$site}->files_written); > > } > > > > sub handler > > { my ($r) = @_; > > my $site = $r->dir_config('site'); > > return -1 if $r->content_type && $r->content_type !~ m|^text/|i; > > my $status = $ah{$site}->handle_request($r); > > return $status; > > } > > << SNIP >> > > > > -- httpd.conf -- > > > > << SNIP >> > > # www.clickly.com (Default) > > > > ServerAdmin [EMAIL PROTECTED] > > DocumentRoot /clickly/html/www > > ServerName www.clickly.com > > PerlSetVar site 'www' > > > > > > Options Indexes FollowSymLinks MultiViews ExecCGI > > AllowOverride None > > Order allow,deny > > Allow from all > > > > alias /mason /clickly/html/www > > > > SetHandler perl-script > > PerlHandler HTML::Mason > > > > > > << SNIP >> > > > > == > > Guido Moonen > > Clickly.com > > Van Diemenstraat 206 > > 1013 CP Amsterdam > > THE NETHERLANDS > > > > Mob: +31 6 26912345 > > Tel: +31 20 6934083 > > Fax: +31 20 6934866 > > E-mail: [EMAIL PROTECTED] > > http://www.clickly.com > > > > > > Get Your Software Clickly! > > == > >
Re: [Mason] Problem: no-Content.
HTML::Mason is your perlhandler in the /mason request space, so what's supposed to handle a root object "/" request? Do a simple setup for one virtualhost and make sure your choices of documentroot, alias settings and component_root settings agree before broadening the solution for multiple virtualhosts. Also, back down to Mason 0.87 until 0.89 is released. -Ian > Hello all, > > -- The Problem -- > > When i try try retrieve http://www.clickly.com/index.html > (Test-Site: not the real clickly.com) i get a blank return and i > mean a real blank content return (tried it with telnet to port 80 and > the server only sends back the headers of the web-page?) > > Does anybody know what the problem is? I'va tried all sorts of > things but nothing worked. > > Thanks in advance, > Guido Moonen > > -- The Stuff i have -- > > * Solaris V 2.6 op Sun ultrasparc. > * perl, v5.6.0 built for sun4-solaris > * Server version: Apache/1.3.12 (Unix) > Server built: Sep 6 2000 14:51:05 > * mod_perl-1.24 > * Mason v. 0.88 > > -- Handler.PL -- > << SNIP >> > my (%parsers, %interp, %ah); > foreach my $site qw(www modified management) > { $parsers{$site} = new HTML::Mason::Parser(allow_globals => > [qw($dbh %session)]); > > $interp{$site} = new HTML::Mason::Interp (parser=>$parsers{$site}, > > comp_root=>"/clickly/html/$site/", > > data_dir=>"/clickly/masonhq/$site/", >system_log_events=>"ALL"); > $ah{$site} = new HTML::Mason::ApacheHandler(interp=>$interp{$site}); > > chown (scalar(getpwnam "nobody"), scalar(getgrnam "nobody"), > $interp{$site}->files_written); > } > > sub handler > { my ($r) = @_; > my $site = $r->dir_config('site'); > return -1 if $r->content_type && $r->content_type !~ m|^text/|i; > my $status = $ah{$site}->handle_request($r); > return $status; > } > << SNIP >> > > -- httpd.conf -- > > << SNIP >> > # www.clickly.com (Default) > > ServerAdmin [EMAIL PROTECTED] > DocumentRoot /clickly/html/www > ServerName www.clickly.com > PerlSetVar site 'www' > > > Options Indexes FollowSymLinks MultiViews ExecCGI > AllowOverride None > Order allow,deny > Allow from all > > alias /mason /clickly/html/www > > SetHandler perl-script > PerlHandler HTML::Mason > > > << SNIP >> > > == > Guido Moonen > Clickly.com > Van Diemenstraat 206 > 1013 CP Amsterdam > THE NETHERLANDS > > Mob: +31 6 26912345 > Tel: +31 20 6934083 > Fax: +31 20 6934866 > E-mail: [EMAIL PROTECTED] > http://www.clickly.com > > > Get Your Software Clickly! > == > > > ___ > Mason-users mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/mailman/listinfo/mason-users > -- Salon Internet http://www.salon.com/ Manager, Software and Systems "Livin' La Vida Unix!" Ian Kallen <[EMAIL PROTECTED]> / AIM: iankallen / Fax: (415) 354-3326
[Mason] Problem: no-Content.
Hello all, -- The Problem -- When i try try retrieve http://www.clickly.com/index.html (Test-Site: not the real clickly.com) i get a blank return and i mean a real blank content return (tried it with telnet to port 80 and the server only sends back the headers of the web-page?) Does anybody know what the problem is? I'va tried all sorts of things but nothing worked. Thanks in advance, Guido Moonen -- The Stuff i have -- * Solaris V 2.6 op Sun ultrasparc. * perl, v5.6.0 built for sun4-solaris * Server version: Apache/1.3.12 (Unix) Server built: Sep 6 2000 14:51:05 * mod_perl-1.24 * Mason v. 0.88 -- Handler.PL -- << SNIP >> my (%parsers, %interp, %ah); foreach my $site qw(www modified management) { $parsers{$site} = new HTML::Mason::Parser(allow_globals => [qw($dbh %session)]); $interp{$site} = new HTML::Mason::Interp (parser=>$parsers{$site}, comp_root=>"/clickly/html/$site/", data_dir=>"/clickly/masonhq/$site/", system_log_events=>"ALL"); $ah{$site} = new HTML::Mason::ApacheHandler(interp=>$interp{$site}); chown (scalar(getpwnam "nobody"), scalar(getgrnam "nobody"), $interp{$site}->files_written); } sub handler { my ($r) = @_; my $site = $r->dir_config('site'); return -1 if $r->content_type && $r->content_type !~ m|^text/|i; my $status = $ah{$site}->handle_request($r); return $status; } << SNIP >> -- httpd.conf -- << SNIP >> # www.clickly.com (Default) ServerAdmin [EMAIL PROTECTED] DocumentRoot /clickly/html/www ServerName www.clickly.com PerlSetVar site 'www' Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride None Order allow,deny Allow from all alias /mason /clickly/html/www SetHandler perl-script PerlHandler HTML::Mason << SNIP >> == Guido Moonen Clickly.com Van Diemenstraat 206 1013 CP Amsterdam THE NETHERLANDS Mob: +31 6 26912345 Tel: +31 20 6934083 Fax: +31 20 6934866 E-mail: [EMAIL PROTECTED] http://www.clickly.com Get Your Software Clickly! ==