zoukankan      html  css  js  c++  java
  • wamp服务器使用ip访问提示:Forbidden You don’t have permission to access / on this server

    简介:这是wamp服务器使用ip访问提示:Forbidden You don’t have permission to access / on this server的详细页面,介绍了和php,php wamp服务器使用ip访问提示:Forbidden You don’t have permission to access / on this server有关的知识、技巧、经验,和一些php源码等。

    class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=359489' scrolling='no'>

    本人一直是喜欢偷懒的人,所以在配置环境的时候也就直接用了wamp,但问题也相应出现,不能通过IP访问。保存这篇文章是因为它解决了自己的问题。呵呵,下次再装环境的时候,还是不要偷懒了。


    本机上运行:127.0.0.1和localhost都没问题,远程登录就不可以了。
    按照网上有些人的说法,把:

    <Directory />

    Options FollowSymLinks

    AllowOverride None

    Order deny,allow

    Deny from all

    Satisfy all

    </Directory>

    改成

    <Directory />

    Options Indexes FollowSymLinks

    AllowOverride None

    Order deny,allow

    Allow from all

    Satisfy all

    </Directory>

    还是不行,后来我把 Directory 带配置路径的这个地方改了,标红的为添加的,标紫色的是屏蔽的:

    <Directory “C:/wamp/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

    AllowOverride none

    #

    # Controls who can get stuff from this server.

    #

    # onlineoffline tag � don’t remove

    Order Allow,Deny

    Allow from all

    # Allow from 127.0.0.1

    </Directory>

    爱J2EE关注Java迈克尔杰克逊视频站JSON在线工具

    http://biancheng.dnbcw.info/php/359489.html pageNo:1
  • 相关阅读:
    转载: CSS Hack 兼容浏览器经验分享
    PHP parseurl 一个好用的函数
    css 小经验: css hack 的一些兼容小技巧
    jquery 之 $.ajax() 等 success: function(){} 中使return的问题
    转载: PHP socket
    jquery 之 mousedown 鼠标按键响应
    php REMOTEADDR之获取访客IP的代码
    PHP settimelimit0长连接的实现分析
    php selectradio和checkbox默认选择的实现方法
    转载:php 小经验: preg_match 与 preg_match_all 函数
  • 原文地址:https://www.cnblogs.com/ooooo/p/2236008.html
Copyright © 2011-2022 走看看