设置虚拟主机要在httpd.conf这个文件里启用
Include conf/extra/httpd-vhosts.conf我一启用后,重启apache,apache 就不能启动了。怎么回事。

解决方案 »

  1.   

    [Mon Sep 10 23:53:25 2012] [notice] Parent: Received shutdown signal -- Shutting down the server.[Mon Sep 10 23:53:25 2012] [notice] Child 460: Exit event signaled. Child process is ending.
    [Mon Sep 10 23:53:26 2012] [notice] Child 460: Released the start mutex
    [Mon Sep 10 23:53:27 2012] [notice] Child 460: Waiting for 250 worker threads to exit.
    [Mon Sep 10 23:53:27 2012] [notice] Child 460: All worker threads have exited.
    [Mon Sep 10 23:53:27 2012] [notice] Child 460: Child process is exiting
    [Mon Sep 10 23:53:28 2012] [notice] Parent: Child process exited successfully.

    错误日志,关闭后又可以正常启动。
      

  2.   

    上面说的关闭是说
    Include conf/extra/httpd-vhosts.conf
    这个关闭。
      

  3.   


    一大早起来问题就解决了,是这个文件里面写错了httpd-vhosts.conf
    不过那里错了我还不知道,就是把里面的删了再写了一遍。