Apache无法启动,vhosts.conf配置文件被修改

老孔

PhpStudy20180211版,发现Apache启动失败,报错:

AH00526: Syntax error on line 1 of C:/phpStudy/PHPTutorial/Apache/conf/vhosts.conf:

Listen requires 1 or 2 arguments.

检查vhosts.conf文件,发现内容被修改,文件头部增加了

Listen      Options FollowSymLinks ExecCG

Listen      Options FollowSymLinks ExecCG

,之前配置的站点都变成了

<VirtualHost *:     Options FollowSymLinks ExecCG>

    DocumentRoot "      AllowOverride Al"

    ServerName      Order allow,deny

    ServerAlias      Allow from all

  <Directory "     Require all grant">

      Options FollowSymLinks ExecCGI

      AllowOverride All

      Order allow,deny

      Allow from all

     Require all granted

  </Directory>

</VirtualHost>

<VirtualHost *:     Options FollowSymLinks ExecCG>

    DocumentRoot "      AllowOverride Al"

    ServerName      Order allow,deny

    ServerAlias      Allow from all

  <Directory "     Require all grant">

      Options FollowSymLinks ExecCGI

      AllowOverride All

      Order allow,deny

      Allow from all

     Require all granted

  </Directory>

</VirtualHost>

问题比较着急?请联系QQ:760483
无数据提示还没有回复,楼主喊你快去抢前排~~~我来回答