apache服务起了,web可以访问,但每次restart报错

apache服务起了,web可以访问,但每次restart报错

/usr/local/apache2/bin/apachectl restart
Warning: DocumentRoot [/www/docs/dummy-host.example.com] does not exist
Warning: DocumentRoot [/www/docs/dummy-host2.example.com] does not exist
[root@bbchina ~]#


系统路径存在
[root@bbchina wwwroot]# pwd
/data/wwwroot


httpd.conf的设置如下


ServerRoot "/usr/local/apache2"

Listen 80

LoadModule deflate_module modules/mod_deflate.so
LoadModule expires_module modules/mod_expires.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule php5_module        modules/libphp5.so

<IfModule !mpm_netware_module>
User www
Group www
</IfModule>

ServerAdmin admin@bbb.net

DocumentRoot "/data/wwwroot"

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>


<Directory "/data/wwwroot">
     Options Indexes FollowSymLinks

       AllowOverride None

     Order allow,deny
    Allow from all

</Directory>

<IfModule dir_module>
    DirectoryIndex index.html index.htm index.php
</IfModule>

<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

ErrorLog logs/error_log

LogLevel warn

<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    CustomLog logs/access_log common

</IfModule>

<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"

</IfModule>

<IfModule cgid_module>
   </IfModule>


<Directory "/usr/local/apache2/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

DefaultType text/plain

<IfModule mime_module>
    TypesConfig conf/mime.types

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

AddOutputFilterByType DEFLATE text/html text/plain text/xml

      AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

</IfModule>


Include conf/extra/httpd-mpm.conf

Include conf/extra/httpd-info.conf

Include conf/extra/httpd-vhosts.conf

Include conf/extra/httpd-default.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

NameVirtualHost 218.27.11.11

<VirtualHost 218.27.11.11>
DocumentRoot /data/wwwroot
ServerName www.bbb.net
</VirtualHost>



高手给予指正啊,,那里写错了??

Warning: DocumentRoot [/www/docs/dummy-host.example.com] does not exist
Warning: DocumentRoot [/www/docs/dummy-host2.example.com] does not exist

看一下你的/usr/local/apache2/conf/extra/httpd-vhosts.conf
感谢感谢,,原来这还有一个配置文件

#    ErrorLog logs/dummy-host2.example.com-error_log
#    CustomLog logs/dummy-host2.example.com-access_log common

这2行是干嘛的?
下边那行好象添加要确定什么格式