<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=KOI8-R" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Aleksey Avdeev wrote:
<blockquote cite="mid:48DCF6D2.70301@solin.spb.ru" type="cite">öÅĢÕÄĖĻ×
ä.÷. ŠÉŪÅŌ:
<br>
<blockquote type="cite">Aleksey Avdeev wrote:
<br>
<blockquote type="cite">öÅĢÕÄĖĻ× ä.÷. ŠÉŪÅŌ:
<br>
<blockquote type="cite">ó ĻŌÄÅĢŲĪŁĶ ĘĮŹĢĻĶ conf É
/usr/sbin/a2ensite (ÄĻ ŽÅĒĻ ÄĻŪÅĢ ŠŅĻĒŅÅÓÓ, äÅĪ×ÅŅ ĪĮ ĢÉĪÕĖÓÅ :) )
<br>
<br>
ŠŅĻĆÅÓÓ ŠĻŪÅĢ, ĪĻ ÓŌĮĢ ףÄĮ×ĮŌŲ
<br>
Starting httpd2 service: [Fri Sep 26 17:27:37 2008] [warn]
NameVirtualHost *:80 has no VirtualHosts
<br>
[FAILED]
<br>
</blockquote>
<br>
žŌĻ ףÄĮ£Ō:
<br>
<br>
grep '^[^#]*VirtualHost' /etc/httpd2/conf/sites-enabled/*.conf
<br>
<br>
------------------------------------------------------------------------
<br>
<br>
_
<br>
</blockquote>
grep '^[^#]*VirtualHost' /etc/httpd2/conf/sites-enabled/*.conf
<br>
/etc/httpd2/conf/sites-enabled/000-default.conf:<VirtualHost *>
<br>
/etc/httpd2/conf/sites-enabled/000-default.conf:</VirtualHost>
<br>
/etc/httpd2/conf/sites-enabled/ports_all.conf:NameVirtualHost *
<br>
</blockquote>
^^^^^^^^^^^^^^^^^
<br>
<blockquote type="cite">/etc/httpd2/conf/sites-enabled/vhosts.conf:NameVirtualHost
*:80
<br>
</blockquote>
^^^^^^^^^^^^^^^^^^^^
<br>
<blockquote type="cite">/etc/httpd2/conf/sites-enabled/test.conf:<VirtualHost
*>
<br>
/etc/httpd2/conf/sites-enabled/test.conf:</VirtualHost>
<br>
</blockquote>
<br>
šĻŠŅĻĀÕŹŌÅ ÉÓŠŅĮ×ÉŌŲ ŠÅŅÅĖŅŁŌÉÅ NameVirtualHost (ÓĶ. ףÄÅĢÅĪÉÅ ×ŁŪÅ).
åÓĢÉ ŠĻĶĻÖÅŌ -- ŠŅĻŪÕ ŠĻ×ÅÓÉŌŲ ĪĮ apache2 ĀĮĒÕ (ĀÅŚ ĀĮĒÉ ĶĻĒÕ ŚĮĀŁŌŲ
ÉÓŠŅĮ×ÉŌŲ: ĒĻĢĻ×Į ÄŅÕĒÉĶ ŚĮĪŃŌĮ).
<br>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Sysadmins mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Sysadmins@lists.altlinux.org">Sysadmins@lists.altlinux.org</a>
<a class="moz-txt-link-freetext" href="https://lists.altlinux.org/mailman/listinfo/sysadmins">https://lists.altlinux.org/mailman/listinfo/sysadmins</a>
</pre>
</blockquote>
šĻÓŌĮ×ÉĢ × vhosts.conf NameVirtualHost *<br>
<br>
service httpd2 restart<br>
Service httpd2 is not
running.
[PASSED]<br>
Checking configuration sanity for httpd2: [Fri Sep 26 19:55:47 2008]
[warn] NameVirtualHost *:0 has no VirtualHosts<br>
Syntax OK<br>
[ DONE ]<br>
Starting httpd2 service: [Fri Sep 26 19:57:11 2008] [warn]
NameVirtualHost *:0 has no VirtualHosts<br>
[FAILED]<br>
<br>
<br>
grep '^[^#]*VirtualHost' /etc/httpd2/conf/sites-enabled/*.conf <br>
/etc/httpd2/conf/sites-enabled/000-default.conf:<VirtualHost *><br>
/etc/httpd2/conf/sites-enabled/000-default.conf:</VirtualHost><br>
/etc/httpd2/conf/sites-enabled/ports_all.conf:NameVirtualHost *<br>
/etc/httpd2/conf/sites-enabled/vhosts.conf:NameVirtualHost *<br>
/etc/httpd2/conf/sites-enabled/test.conf:<VirtualHost *><br>
/etc/httpd2/conf/sites-enabled/test.conf:</VirtualHost><br>
<br>
</body>
</html>