Hello!

I wonder if any of you gurus can help me with this problem.
When I looked in the archive I couldn't find any information about this
one.
When I use the optRedirectStdout option it seems that only stderr will
be redirected
not stdout. I've got the impression that it would be the other way
around.

    Mikael Stiernstr�m

Platform:
Solaris 7
Apache/1.3.22
mod_perl/1.26

I have the following configuration in my httpd.conf
NameVirtualHost xxx.xxx.xxx.xxx
<VirtualHost xxx.xxx.xxx.xxx>
    ServerName foo.bar.com
    DocumentRoot /www/foo.bar.com/htdocs
    <Files *.html>
        SetHandler perl-scrip
        PerlHandler HTML::Embperl
        Options EcecCGI
        SetEnv EMBPERL_OPTIONS optRedirectStdout
        SetEnv EMBPERL_OPTIONS optRawInput
    </Files>
</VirtualHost>

I have tested with following embperl file
<html>
<head>
</head>
<body>
[-
    print OUT "Printing to OUT\n";
    print "Just printing (stdout)\n";
    print STDOUT "Printing to STDOUT\n";
    print STDERR "Printing to STDERR\n"
-]
</body>
</html>

Result in browser:
Just printing (stdout) Printing to STDOUT HTTP/1.1 200 OK Date: Fri, 08
Feb 2002 13:08:28 GMT Server: Apache/1.3.22 (Unix)
mod_perl/1.26 Content-Length: 279 Keep-Alive: timeout=15, max=100
Connection: Keep-Alive Content-Type: text/html; charset=iso-8859-1
Embperl
example html
Printing to OUT

from apache error_log:
...
Printing to STDERR
...



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to