I believe you do not need to process your css files via mason handler, just use 
the <FilesMatch on files that actually has mason content. Your malformed header 
could be from a bad httpd.conf settings (check DefaultType) or perhaps you have 
bad code on handshake.html.

 ------------------------------
Apu Islam
( E Pluribus Unum)




________________________________
From: Air Kang <lonely...@gmail.com>
To: mason-users@lists.sourceforge.net
Sent: Monday, January 12, 2009 12:26:37 AM
Subject: Re: [Mason] Mason-users Digest, Vol 32, Issue 1








Message: 3
Date: Sun, 11 Jan 2009 18:32:04 -0800 (PST)
From: Apu islam <apu_is...@yahoo.com>
Subject: Re: [Mason] Couldn't create object file ...Permission denied
To: Air Kang <lonely...@gmail.com>, mason-users@lists.sourceforge.net
Message-ID: <892718.14203...@web56006.mail.re3.yahoo.com>
Content-Type: text/plain; charset="us-ascii"

Your apache user id should have read/write permission to the mason folder and 
all it;s child folder. Please double check that and restart apache and retry.

 ------------------------------
Apu Islam
( E Pluribus Unum)


I had check out the permission to the mason folder and 
get new error in /var/log/apache2/error.log
[Mon Jan 12 14:18:45 2009] [error] [client 127.0.0.1] malformed header from 
script. Bad header=Greetings, Martians: handshake.html, referer: 
http://localhost/mason/


httpd.conf
PerlSetVar MasonCompRoot    /www/mason
PerlSetVar MasonDataDir     /www/mason/data

PerlSetVar MasonAllowGlobals $Schema
PerlAddVar MasonAllowGlobals $User

PerlModule HTML::Mason::ApacheHandler

<Directory /www/mason>

   <FilesMatch "\.html|\.css|\.mas$">
    SetHandler perl-script
    PerlHandler HTML::Mason::ApacheHandler
   </FilesMatch>
</Directory>

-- 
Linux>>>>>still>>>>perl
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to