ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 

  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА














     АРХИВ :: Apache-Talk
Apache-Talk mailing list archive (apache-talk@lists.lexa.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[apache-talk] VirtualHost & suexec & printenv


  • To: apache-talk@lists.lexa.ru
  • Subject: [apache-talk] VirtualHost & suexec & printenv
  • From: Artem Chuprina <ran@pirit.com>
  • 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@pirit.com                     Э-почта: ran@pirit.com
Phone: +7(095) 115-7101                Телефон: +7(095) 115-7101


=============================================================================
=               Apache-Talk@lists.lexa.ru mailing list                      =
Mail "unsubscribe apache-talk" to majordomo@lists.lexa.ru if you want to quit.
=       Archive avaliable at http://www.lexa.ru/apache-talk                 =



 




Copyright © Lexa Software, 1996-2009.