就是在httpd.conf文件这里启用虚拟主机,我去掉#后重启apache就会报错,恢复#再重启又正常了,这样我没办法配了,请教解决方法

解决方案 »

  1.   

    估计是那个文件不存在,看看apache的错误日志。
      

  2.   

    看了error.log日志的  不是你说的那个问题
      

  3.   

    Starting the Apache2.2 service
    The Apache2.2 service is running.
    rmine the server's fully qualified domain name, using 113.57.80.135 for ServerName
    [Fri Sep 27 15:21:59 2013] [notice] Apache/2.2.14 (Win32) configured -- resuming normal operations
    [Fri Sep 27 15:21:59 2013] [notice] Server built: Sep 28 2009 22:41:08
    [Fri Sep 27 15:21:59 2013] [notice] Parent: Created child process 2036
    httpd.exe: Could not reliably determine the server's fully qualified domain name, using 113.57.80.135 for ServerName
    httpd.exe: Could not reliably determine the server's fully qualified domain name, using 113.57.80.135 for ServerName
    [Fri Sep 27 15:22:00 2013] [notice] Child 2036: Child process is running
    [Fri Sep 27 15:22:00 2013] [notice] Child 2036: Acquired the start mutex.
    [Fri Sep 27 15:22:00 2013] [notice] Child 2036: Starting 64 worker threads.                  
    [Fri Sep 27 15:22:00 2013] [notice] Child 2036: Starting thread to listen on port 80.
    [Fri Sep 27 15:46:37 2013] [notice] Parent: Received restart signal -- Restarting the server.
    [Fri Sep 27 15:46:37 2013] [notice] Child 2036: Exit event signaled. Child process is ending.