非法选项\ xe2 \ x80 \ x93MultiViews

问题描述 投票:0回答:1

我尝试重新启动Apache2服务器时收到错误:

  ubuntu$ sudo /etc/init.d/apache2 restart
  Syntax error on line 6 of /etc/apache2/sites-enabled/default:
  Illegal option \xe2\x80\x93MultiViews
  Action 'configtest' failed.
  The Apache error log may have more information.
  ...fail!

这是我的sites-available/default.conf

<VirtualHost *:80>
    ServerName server.example.comm
    DocumentRoot /var/www/testapp/public

    <Directory /var/www/testapp/public>
        AllowOverride all
        Options –MultiViews
    </Directory>
</VirtualHost>
apache virtualhost
1个回答
1
投票

尝试

Options Indexes FollowSymLinks MultiViews
© www.soinside.com 2019 - 2024. All rights reserved.