You don't have permission to access / on this server.

出现这个报错需要更改apache配置文件

sudo vi /etc/apache2/httpd.conf

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

或类似

修改为

<Directory />
    Options Indexes FollowSymLinks
    AllowOverride None
</Directory>

You don't have permission to access / on this server.

时间: 2024-10-13 01:20:40

You don't have permission to access / on this server.的相关文章

phpstudy无法访问主页,提示You don&#39;t have permission to access / on this server解决办法

1.输入localhost提示:You don't have permission to access / on this server. 新版phpStudy为了安全,取消Apache和nginx列出目录内容. phpStudy如何禁止或允许站点目录列表 请使用『其他选项菜单』-『phpStudy设置』-『允许目录列表』,打上对勾表示允许目录列表,去掉对勾表示禁止目录列表. 2.配置多域名的虚拟主机总是失败,提示You don't have permission to access / on

WampServer出现You don’t have permission to access/on this server提示

WampServer出现You don't have permission to access/on this server提示 本地搭建WampServer,输入http://127.0.0.1访问正常,当输入http://localhost/,apache出现You don't have permission to access/on this server的提示,如何解决? 找到httpd.conf,用记事本打开httpd.conf,有两处需要修改: <Directory /> Opti

Forbidden You don&#39;t have permission to access / on this server

Apache: Forbidden You don't have permission to access / on this server 度娘了半天,屁用都没,都是老掉牙的. 最后google之,http://stackoverflow.com/questions/21551840/forbidden-you-dont-have-permission-to-access-on-this-server Found my solution thanks to Error with .htacce

Apache 2.4权限设置( you don&#39;t have permission to access / on this server Apache2.4)

摘要 you don't have permission to access / on this server Apache2.4 Apache 从2.2升级到 Apache2.4.x 后配置文件 httpd.conf 的设置方法有了大变化,以前是将 deny from all 全部改成 Allow from all 实现外网访问,现在是将 Require all denied 以及 Require local 都该为 Require all granted 就可以了. .htaccess 如果

yii安装 /You don&#39;t have permission to access on this server

在安装yii的时候 ,当打开了init.bat进行配置的时候小黑本弹出了个小黑框立刻就关闭了,  进入cmd模式再打开init.bat就出现了"You don't have permission to access  on this server"的这个错误,后来综合网上的各个文章,找到了造成了这个问题的原因主要有三个 1 php的permission扩展配置没有开 , 我用的是phpStudy在php-5.6.27-nts里面的配置文件里把去掉extension=php_openss

wamp出现You don’t have permission to access/on this server提示的解决方法

本地搭建wamp 输入http://127.0.0.1访问正常,当输入http://localhost/ apache出现You don't have permission to access/on this server.的提示 解决方法如下: 找到httpd.conf,用记事本打开httpd.conf,然后将 <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all <

Apache-You don&#39;t have permission to access / on this server. Apache, win 7

在win7环境下,apche报出You don't have permission to access / on this server.禁止访问,应该如何解决呢?可以试试下面的方法 第一:寻找配置文件:apache\apache2.2.22\conf\httpd.conf (修改配置文件之前,记得先做好备份,以免方案不对,影响原来的配置) 第二:用编辑器打开,寻找: #LoadModule rewrite_module modules/mod_rewrite.so 第三:删除本行开头的“#”,

mac osx Forbidden You don&#39;t have permission to access / on this server解决方法

(1)首先查看*.conf 是否有读写权限,如果没有要将文件赋予读写权限,比如 sudo chmod 777 localhost.conf (2)再查看/Users/username/Sites/localhost/文件夹是否有index.html文件,没有的话,创建一个,默认是打开index.html文件 (3)最后查看localhost配置文件 对于OSX 10.9 Apache 2.2 <VirtualHost *:80> DocumentRoot "/Users/xx/Sit

[php排错] Forbidden You don&#39;t have permission to access / on this server.

刚开始接触PHP,在搭建完环境后发现输入127.0.0.1可以访问界面,但是输入http://localhost却提醒无权访问,在百度之后发现是php中的httpd.conf的作用 在wamp中搜索发现有两个httpd.conf,于是把两个都改了,然后重启服务发现可以访问了,方法如下: <Directory />    Options FollowSymLinks    AllowOverride None    Order deny,allow    Deny from all</Di