centos7配置问题laravel5.7

problem in configuration laravel5.7 in centos7

我有内部服务器错误(错误 500):

[client 5.211.29.235:10910] /home/..../public_html/public/.htaccess: Options not allowed here

mysite.conf:

<VirtualHost *:80>
ServerName mywebsite.com
ServerAlias mywebsite.com *.mywebsite.com
DocumentRoot /home/..../public_html/public/
ErrorLog /home/..../public/error_log
</VirtualHost>

更改读写文件 (755) 的权限无效。
禁用 SELinux 没有帮助。
更改 .httaccess 也没有帮助。
更改 httpd.conf 也无济于事。

<Directory />
    AllowOverride ALL
</Directory>

<Directory "/var/www">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride Options
    Order allow,deny
    allow from all
</Directory>

更改 .htaccess 无效:

Options +FollowSymLinks -Indexes
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

通过将 mysite.conf 文件更改为此解决了问题:

<VirtualHost *:80>
ServerName mywebsite.com
ServerAlias mywebsite.com *.mywebsite.com
<Directory />
    AllowOverride ALL
</Directory>
DocumentRoot /home/..../public_html/public/
ErrorLog /home/..../public/error_log
</VirtualHost>