Apache/1.2.6 rus/PL23.0 mod_perl/1.10
Настройки все вроде дефолтные.
Согласно man cgi_to_mod_perl в srm.conf
Alias /perl/ /export/httpd/perl-scripts/
в access.conf
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Location>
(плюс можно и убрать, никаких изменений).
/perl/test:
#!/usr/bin/perl
use strict;
print "Content-type: text/html\n\n";
print "<html><head></head><body>This is a test</body></html>\n";
/cgi-bin/test идентичен.
16:45:04.ran.ttyp5?1> telnet www.pirit.com 80
Trying 194.186.208.161...
Connected to www.pirit.com.
Escape character is '^]'.
GET /perl/test HTTP/1.0
Content-type: text/html
<html><head></head><body>This is a test</body></html>
Connection closed by foreign host.
16:47:45.ran.ttyp5?1> telnet www.pirit.com 80
Trying 194.186.208.161...
Connected to www.pirit.com.
Escape character is '^]'.
GET /cgi-bin/test HTTP/1.0
HTTP/1.1 200 OK
Date: Fri, 19 Jun 1998 12:41:50 GMT
Server: Apache/1.2.6 rus/PL23.0 mod_perl/1.10
Connection: close
Content-Type: text/html; charset=koi8-r
Vary: accept-charset, user-agent
<html><head></head><body>This is a test</body></html>
Connection closed by foreign host.
Соответственно, при исполнении /perl/test Content-type: text/html попадает
в текст, перекодировка отсутствует. Где руки точить?
________________________________________________________________
Artem Chuprina Артем Чуприна
PIRIT Corp. АО "Пирит"
E-mail: ran@pirit.com Э-почта: ran@pirit.com
Phone: +7(095) 115-7101 Телефон: +7(095) 115-7101
"Russian Apache" includes software developed
by the Apache Group for use in the Apache HTTP server project
(http://www.apache.org/) See
Apache LICENSE.
Copyright (C) 1995-2001 The Apache Group. All rights reserved.
Copyright (C) 1996 Dm. Kryukov; Copyright (C)
1997-2009 Alex Tutubalin. Design (C) 1998 Max Smolev.