mason-users:
I am a mason newbie who has installed:
apache2
libhtml-mason-perl
libhtml-mason-perl-doc
libhtml-mason-perl-examples
on a Debian 5.00 VM running inside VMware Player 2.5.2 on Windows Vista
Ultimate 32-bit:
2009-07-02 00:11:22 r...@vmdebian500 ~
# cat /etc/apache2/httpd.conf
PerlModule HTML::Mason::ApacheHandler
AddType text/html mhtml
2009-07-02 00:11:27 r...@vmdebian500 ~
# cat /etc/apache2/sites-enabled/001-mason
<VirtualHost *:80>
ServerName mason.holgerdanske.com
DocumentRoot /home/dpchrist/mason-book
<Location />
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</Location>
</VirtualHost>
2009-07-02 00:12:35 r...@vmdebian500 ~
# apache2ctl configtest
Syntax OK
2009-07-02 00:12:43 r...@vmdebian500 ~
# apache2ctl graceful
2009-07-02 00:13:06 r...@vmdebian500 ~
# cat /home/dpchrist/mason-book/hello.mhtml
% my $noun = 'world';
<HTML>
<BODY>
hello, <% $noun %>!
</BODY>
</HTML>
When I use IE 8.0.6001 and browse to
http://mason.holgerdanske.com/hello.mhtml, IE downloads the output of
Mason rather than displaying it.
If I use wget:
2009-07-02 00:13:22 r...@vmdebian500 ~
# wget http://mason/hello.mhtml
--2009-07-02 00:14:27-- http://mason/hello.mhtml
Resolving mason... 192.168.0.50
Connecting to mason|192.168.0.50|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `hello.mhtml'
[ <=> ] 52 --.-K/s
in 0s
2009-07-02 00:14:27 (3.25 MB/s) - `hello.mhtml' saved [52]
2009-07-02 00:14:27 r...@vmdebian500 ~
# cat hello.mhtml
<HTML>
<BODY>
hello, world!
</BODY>
</HTML>
I ran into a similar problem in the past with Perl/CGI scripts named
*.pl when I had ActivePerl installed -- Windows had a file extension
association for .pl and ActivePerl. I can't remember if IE tried to
download or run the file -- it's been a while and I don't name Perl/CGI
scripts *.pl anymore.
Checking Control Panel -> Default Programs -> Set Associations, I see:
.mhtml MHTML Document Internet Explorer
I don't recall setting this association, so I assume it's a Windows/IE
default (?).
Any suggestions?
TIA,
David
------------------------------------------------------------------------------
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users