之前开发项目一直在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.的更多相关文章

  1. 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.” ...

  2. Linux Centos7 Apache 訪问 You don't have permission to access / on this server.

    折腾了非常久,今天才找到了最正确的答案.感言真不easy. 百度出来的99%都是採集的内容.全都是错误的. You don't have permission to access / on this ...

  3. CentOS出错You don't have permission to access on this server

    检查http.conf发现没错之后.查找资料后发现时selinux的问题,所以须要关闭这个服务: 1 vi /etc/sysconfig/selinux 2 SELINUX=enforcing 改为 ...

  4. 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 ...

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

    在新安装的谷歌游览器里,打不了PHP网站了,错误显示: Forbidden You don't have permission to access / on this server. 原因还是配置权限 ...

  6. 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 ...

  7. yii安装 /You don't have permission to access on this server

    在安装yii的时候 ,当打开了init.bat进行配置的时候小黑本弹出了个小黑框立刻就关闭了,  进入cmd模式再打开init.bat就出现了"You don't have permissi ...

  8. 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 ...

  9. 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 ...

随机推荐

  1. Tensorflow入门-上

    前置准备 在阅读本文之前,请确定你已经了解神经网络的基本结构以及前向传播.后向传播的基本原理,如果尚未了解,可以查看下文. 深度学习之神经网络 什么是TensorFlow? TensorFlow是Go ...

  2. js 或jquery定义方法时,参数不固定是怎么实现的

    //①不定义接受参数的方式来接受参数(arguments) function getparams(){ //利用arguments来接受参数,arguments表示参数集合, //里面存放的调用这个方 ...

  3. C++ 线程同步的四种方式

    程之间通信的两个基本问题是互斥和同步. (1)线程同步是指线程之间所具有的一种制约关系,一个线程的执行依赖另一个线程的消息,当它没有得到另一个线程的消息时应等待,直到消息到达时才被唤醒. (2)线程互 ...

  4. [Luogu] P2817 宋荣子的城堡

    题目描述 saruka有一座大大的城堡!城堡里面有n个房间,每个房间上面都写着一个数字p[i].有一天,saruka邀请他的小伙伴LYL和MagHSK来城堡里玩耍(为什么没有妹子),他们约定,如果某一 ...

  5. CSU1011: Counting Pixels

    Description Did you know that if you draw a circle that fills the screen on your 1080p high definiti ...

  6. 【thinking in java】反射

    前言 反射是框架设计的灵魂,使用的前提条件:必须先得到字节码的Class,Class类用于表示字节码,字节码即是.class文件 概述 JAVA反射机制:在程序运行的过程中,对于任意一个类,都可以知道 ...

  7. [Python3网络爬虫开发实战] 1.3.4-tesserocr的安装

    在爬虫过程中,难免会遇到各种各样的验证码,而大多数验证码还是图形验证码,这时候我们可以直接用OCR来识别. 1. OCR OCR,即Optical Character Recognition,光学字符 ...

  8. LNMP构架搭建论坛

    1 yum install -y apr* autoconf automake bison bzip2 bzip2* compat* cpp curl curl-devel fontconfig fo ...

  9. Bootstrap-Table 总结

    Bootstrap-Table 总结 jQuery Java Bootstrap-Table JS文件 传参:直接将需要的参数置于 queryParams 方法中,例如 line:formData注意 ...

  10. c++基础_字符串对比

    #include <iostream> #include <string.h> #include <algorithm> using namespace std; ...