You don't have permission to access ××× on this server.
之前开发项目一直在linux上用的xampp集成环境,前几天突然想移到window上面去。
開始在window上安装了一个集成环境(名字大概是 Uniform Service),把项目文件已过去,
ok,本地执行没问题,看似就这么完了。然后公司一个同事要登录我的server帮我測试站点,
问题来了。输入我的ip地址 进不去,提示:You don't have permission to access ××× on this server.
于是我開始找配置文件,首先是httpd.conf。发现这个集成包里面的apache配置文件里没有
Deny from all这种配置项,这咋整。。
纠结中,看到集成包文件夹中有个home文件夹,于是点进去看看,
于是我顺眼看到一个us_config的目录,进去,第一个.htaccess文件。顺势就点开来看看。
一看不打紧,这下看到几行熟悉的配置项。心中若有所思,这几行是:
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
于是回忆起来我把项目移到window上在移到这个集成包的www文件夹时,替换了它的.htaccess文件,由于之前的项目里面写了.htaccess,
没想到这个集成包竟然把一部分配置放到了.htaccess里面,着实让人讨厌啦。。。
于是把这几行配置项写到我的.htaccess文件中面,把后两个凝视掉,第二个改为 allow from all 大功告成,事实上也能够直接写道httpd.conf文件中面,
所以以后看到:You don't have permission to access ××× on this server.这样的提示。在linux上首先想到文件权限。在window上就是配置訪问权限了,
那么就是httpd.conf。假设单独装的apache配置文件都在httpd.conf里面了 假设安装的其他集成环境,想我就是,那就要看看有没有配置文件写道其他地方的。。
。
You don't have permission to access ××× on this server.的更多相关文章
- You don't have permission to access /phpmyadmin/main.php on this server.
wamp 安装后,打开首页.出现问题,信息如下: “You don't have permission to access /phpmyadmin/main.php on this server.” ...
- Linux Centos7 Apache 訪问 You don't have permission to access / on this server.
折腾了非常久,今天才找到了最正确的答案.感言真不easy. 百度出来的99%都是採集的内容.全都是错误的. You don't have permission to access / on this ...
- CentOS出错You don't have permission to access on this server
检查http.conf发现没错之后.查找资料后发现时selinux的问题,所以须要关闭这个服务: 1 vi /etc/sysconfig/selinux 2 SELINUX=enforcing 改为 ...
- WampServer phpadmin apache You don't have permission to access
1.Forbidden You don't have permission to access / on this server. 后来咨询了一下朋友(php高手),说修改一下php的配置文件http ...
- Forbidden You don't have permission to access / on this server PHP
在新安装的谷歌游览器里,打不了PHP网站了,错误显示: Forbidden You don't have permission to access / on this server. 原因还是配置权限 ...
- 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 ...
- yii安装 /You don't have permission to access on this server
在安装yii的时候 ,当打开了init.bat进行配置的时候小黑本弹出了个小黑框立刻就关闭了, 进入cmd模式再打开init.bat就出现了"You don't have permissi ...
- CentOS出错You don't have permission to access on this server
之前配置phpmyadmin的时候,在浏览器上输入http://192.168.8.250/phpmyadmin/ 也遇到了You don't have permission to access on ...
- wampserver You don't have permission to access / on this server. 解决 方法(转,正好碰到这样的事情了就转下来)
最近在安装最近版wampserver 2.2 d时发现安装好后启动服务器,访问localhost显示You don't have permission to access / on this serv ...
随机推荐
- iView webapp / Mint UI / MUI [前端UI]
前端UI iView webapp一套高质量的 微信小程序 UI 组件库 https://weapp.iviewui.com/?from=iview Mint UI 基于 Vue.js 的移动端组件库 ...
- C3P0连接池参数配置说明
C3P0连接池参数配置说明 created by cjk on 2017.8.15 常用配置 initialPoolSize:连接池初始化时创建的连接数,default : 3(建议使用) minPo ...
- LPCTSTR 字符串获取其长度
LPCTSTR lpStr = "123456789";int i=CString(lpStr).GetLength();
- Bzoj4899 记忆的轮廓
B. 记忆的轮廓 题目描述 通往贤者之塔的路上,有许多的危机.我们可以把这个地形看做是一颗树,根节点编号为1,目标节点编号为n,其中1-n的简单路径上,编号依次递增,在[1,n]中,一共有n个节点.我 ...
- note for git
1.download https://git-for-windows.github.io/ 2.command add file to git: git add filename & git ...
- formatDate() 格式化日期
function datefmt(milSec, format) { var oldTime = Number(milSec); //得到毫秒数 // 日期格式转换 var t = new Date( ...
- [NOI2005]聪聪与可可
题目大意:有小a和小b,其中一个人到处乱走,每次走一步:另一个人抄近路逼近,每次1-2步.求期望路程. 整解:跑1000遍最短路/bfs,求两两距离,然后找从x逼近y第一步去哪,最后期望dp收场. d ...
- mysql主从同步,主库宕机解决方案
链接:https://blog.csdn.net/zfl589778/article/details/51441719
- 安装php扩展(以swoole)为例
一.下载swoole到/usr/local/src目录下,操作 git clone https://gitee.com/swoole/swoole.git; 二.cd swoole,phpize(如果 ...
- 爬虫框架urllib 之(二) --- urllib基础
urllib 官方文档:https://docs.python.org/zh-cn/3/library/urllib.html urllib介绍 Urllib是python内置的HTTP请求库,是py ...