如何设置的AllowOverride所有 [英] How to Set AllowOverride all

查看:812
本文介绍了如何设置的AllowOverride所有的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置的AllowOverride所有但我不知道该怎么做。我发现下面的code。通过搜索谷歌和在.htaccess粘贴它

I want to set the AllowOverride all But I don't know how to do it. I have found the following code by searching the google and pasted it in .htaccess

<Directory>
        AllowOverride All
</Directory>

但粘贴后,我开始收到内部服务器错误

任何一个可以指导我在哪里可以将这个code或该怎么办呢?

Can Any One Guide Me Where to Put this code OR how to do it?

推荐答案

如果你是在Ubuntu上编辑文件的 /etc/apache2/apache2.conf中(我们在这里有一个例子<强> /无功/网络)

in case you are on ubuntu edit the file /etc/apache2/apache2.conf (here we have an example of /var/www)

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

和它更改为;

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

然后

sudo service apache2 restart

这应该工作:)

干杯

函数naveed

这篇关于如何设置的AllowOverride所有的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆