简体   繁体   English

.htaccess:此处不允许使用选项Centos 7

[英].htaccess: Options not allowed here Centos 7

I am facing this error when deploy my laravel website on server centos 7 .htaccess: Options not allowed here 在服务器centos 7 .htaccess上部署laravel网站时,我遇到此错误:此处不允许使用选项

[Sat Oct 18 09:38:43.336180 2014] [core:alert] [pid 13593] [client 182.186.240.3:7034] /home/test/public_html/.htaccess: Options not allowed here
[Sat Oct 18 09:38:43.727177 2014] [core:alert] [pid 13589] [client 182.186.240.3:7123] /home/test/public_html/.htaccess: Options not allowed here

You need to provide this line in <Directory...> section of Apache config and restart Apache server in order to use Options directives in .htaccess : 您需要在Apache config的<Directory...>部分中提供此行,然后重新启动Apache服务器,以便在.htaccess使用Options指令:

Options All

As per Apache docs: 根据Apache文档:

# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM