Russian Apache mailing list archive (apache-rus@lists.lexa.ru)
[Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
[apache-talk] VirtualHost & suexec & printenv
To : apache-talk@xxxxxxxxxxxxx
Subject : [apache-talk] VirtualHost & suexec & printenv
From : Artem Chuprina <ran@xxxxxxxxx >
Date: Fri, 30 Oct 1998 16:12:36 +0300 (EET)
Organization: PIRIT Corp.
==== /etc/httpd/httpd.conf (уже упрощенный вариант) ====
<VirtualHost 192.168.0.5>
ServerName wwwtest.pirit.in
User ran
Group ran
</VirtualHost>
==== ====
==== /home/httpd/cgi-bin/printenv ====
#!/usr/bin/perl
print "Content-type: text/html\n\n";
while (($key, $val) = each %ENV) {
print "$key = $val<BR>\n";
}
==== ====
> ls -l /home/httpd/cgi-bin/printenv
-rwxr-xr-x 1 root root 120 Окт 30 15:59 /home/httpd/cgi-bin/printenv
# /etc/rc.d/httpd/start
# netscape http://wwwtest.pirit.in/cgi-bin/printenv
# tail /var/log/httpd/error_log
[Fri Oct 30 15:58:43 1998] [notice] Apache/1.3.3 (Unix) mod_ssl/2.0.13 SSLeay/0.
9.0b mod_perl/1.16 rus/PL26.5 configured -- resuming normal operations
[Fri Oct 30 15:58:43 1998] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin
/suexec)
[Fri Oct 30 15:58:50 1998] [error] [client 192.168.0.5] Premature end of script
headers: /home/httpd/cgi-bin/printenv
При этом при обращении на http://localhost/cgi-bin/printenv , при
комментировании User и Group все нормально. Чего он хочет? Ставились rpm'ы
Вити Хименко.
________________________________________________________________
Artem Chuprina Артем Чуприна
PIRIT Corp. АО "Пирит"
E-mail: ran@xxxxxxxxx Э-почта: ran@xxxxxxxxx
Phone: +7(095) 115-7101 Телефон: +7(095) 115-7101
=============================================================================
= Apache-Talk@xxxxxxxxxxxxx mailing list =
Mail "unsubscribe apache-talk" to majordomo@xxxxxxxxxxxxx if you want to quit.
= Archive avaliable at http://www.lexa.ru/apache-talk =
Спонсоры сайта:
"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.