access to forbiddenn You don't have permission to access /cgi-bin/ on this server.

今天老大让在xp下搭建一个FTP服务器,一波三折,最后终于在老大的帮助下搞定了。。。其中通过ip访问的时候 提示 Forbidden You don't have permission to access / on this server.找到一个解决方法,特此记录&php的配置文件httpd.conf。在原有的位置文件中找到配置节&Directory /&
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all&/Directory&&修改成&Directory /&
Options FollowSymLinks
AllowOverride None
Order deny,allow#
Deny from all
Allow from all#允许所有访问
Satisfy all&/Directory&&&还有&&Directory "D:/Wamp5/www"&
# 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.
Options Indexes FollowSymLinks
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
Options FileInfo AuthConfig Limit
AllowOverride all
# Controls who can get stuff from this server.
onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1&/Directory&&修改成&&Directory "D:/Wamp5/www"&
# 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.
Options Indexes FollowSymLinks
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
Options FileInfo AuthConfig Limit
AllowOverride all
# Controls who can get stuff from this server.
onlineoffline tag - don't remove
Order Deny,Allow#
Deny from all#
Allow from 127.0.0.1
Allow from all&/Directory&&然后保存,重启服务,在访问就解决了这个问题。今天看啥 热点:
Linux Centos7 Apache 访问 You don't have permission to access / on this server.,centos7permission
折腾了很久,今天才找到了最正确的答案。感言真不容易。
百度出来的99%都是采集的内容,全都是错误的。
You don't have permission to access / on this server.
百度出的解决方法:
1)关闭selinux 。坑,服务器根本就没开启selinux
2)修改 httpd.conf 中的 allow from all!坑,Apache都2.4+,根本就不存在 allow from all ,现在改为了 &Require all granted!
3)修改 chcon -R httpd_user_content_t !坑,误人子弟,CentOS7 中根本就没这样一个上下文,因为selinux根本就没开启
4)修改 chown apache:& -R //public_html!误人子弟,坑比!这样把目录改了,他本来的用户却没有目录访问权限了!逗比!!!
百度了一个多小时,全都是这样的解决方法,出来的网页全都是一大堆广告。
中国的最大搜索引擎搜索出来的都是那种布满广告的采集站!采集站不要紧,关键是全都是广告,连正常的阅读都无法阅读!
最后正确的解决方法:
chmod o+x& /
上一级目录的其他用户组也必须加上& x 执行权限否则Apache无法读取!
写到最后,感谢segmentfault 社区的热心人,不然真的瞎折腾几天可能又要放弃了。牢骚一下,网上用百度搜索出来的东西根本就不准确!用不了Google,goagent总是断断续续,而且对英文不熟悉。瞎折腾的时候感觉自己就像chaoxian,落后但是自我感觉良好,很多人用百度还觉得自豪爱国。(by )
You don't have permission to access / on this server.你没有权限访问 /目录/etc/httpd/httpd.conf文件配置&Directory /&AllowOverride NoneOrder allow,deny#allow from all
--------------》这行被注释
这行是意思是 允许所有访问&/Directory&root主目录默认是(按照你的)/home//lamp/apache243/htdocs
它是说你没有权限访问网站,你是不是没有配置httpd.conf
相关搜索:
相关阅读:
相关频道:
&&&&&&&&&&&&
系统综合最近更新关于You don t have permission to access / on this server提示总结-Windows服务器-操作系统-壹聚教程网关于You don t have permission to access / on this server提示总结
本文章总结了关于You don t have permission to access / on this server的一些问题的总结与解决办法,有需要的朋友可参考。
仔细检查了一遍配置文件httpd.conf,找到这么一段:
&Directory /&
&&& Options FollowSymLinks
&&& AllowOverride None
&&& Order deny,allow
&&& deny from all
&&& Satisfy all
&/Directory&
然后试着把deny from all中的deny改成了allow,保存后重起了apache,然后再一测试我的网页
解决Apache下403 Forbidden错误
&&& 今天在公司电脑上安装Apache,版本2.2.8,装完刚测试可以;配置了下php的php.in文件再次localhost打开发现错误:HTTP 错误 403 - 禁止访问,即403 Forbidden:You don't have permission to access / on this server.权限又不够了?
马上打开apache的配置文件httpd.conf,逐行检查。在大约快一半的地方有以下这段代码:
&Directory /&
&&& Options FollowSymLinks
&&& AllowOverride None
&&& Order deny,allow
&&& Deny from all
&/Directory&
发现了吧。由于配置了php后,这里的&Deny from all&已经拒绝了一切连接。把该行改成&allow from all&,修改后的代码如下,问题解决。
&Directory /&
&&& Options FollowSymLinks
&&& AllowOverride None
&&& Order deny,allow
&&& allow from all
&/Directory&
系统是centos,You don't have permission to access / on this server.
在google上搜索了一下,大部分的解决方法就是。
&Directory /&
&&& Options FollowSymLinks
&&& AllowOverride None
&&& Order deny,allow
&&& Deny from all
&/Directory& 这里改成
&Directory /&
&&& Options Indexes FollowSymLinks
&&& AllowOverride None
&/Directory
我改了之后还是会出现上面的错误,于是看一下自己设定的工作目录权限。
Options ExecCGI Includes
改成下面这行设置后,显示正常。
Options Indexes FollowSymLinks
当访问类unix操作系统上的/usr/local/apache2/htdocs/foo/bar.htm文件时,你收到了Permission Denied的错误。
&首先,查看文件的访问权限:
$ cd /usr/local/apache2/htdocs/foo
$ ls -l bar.htm
&如果须要的话,就修复它们:
$ chmod 644 bar.html
对文件夹以及每个父文件夹做相同的操作
(/usr/local/apache2/htdocs/foo,/usr/local/apache2/htdocs,/usr/local/apache2,/usr/local/,/usr):
$ chmod +x
$ #repeat up to the root
&在一些系统上,可使用工具namei来列出各个路径上的不同组件的访问权限,然后去发现是否有权限问题:
$ namei -m /usr/local/apache2/htdocs/foo/bar.html
&3、最后,如果还是没有解决问题,那么需要查看扩展的访问权限。
使用setenforce 0关闭SELinux,看是否解决问题
上一页: &&&&&下一页:相关内容wamp访问报错You don&t have permission to access / on this server. - 开源中国社区
当前访客身份:游客 [
当前位置:
我用wamp本地搭建的Discuz,搭建的这台电脑可以通过IP地址(10.50.7.4)访问Discuz,局域网(同网段10.50.*)内其他电脑访问IP,浏览器提示:
You don't have permission to access/on this server.
--------------------------------------------------------------------------
Apache/2.4.9(win32)php/5.5.12 Server at 10.50.7.4 Port 80
共有0个答案
更多开发者职位上
有什么技术问题吗?
类似的话题

我要回帖

更多关于 svn access forbidden 的文章

 

随机推荐