首页 > 开发 > Apache > 正文

apache用ip访问出现403禁止访问怎么解决

2020-07-28 15:03:20
字体:
来源:转载
供稿:网友
  apache在本机上访问正常,但是用ip访问就会出现403禁止访问的报错!这应该怎么解决呢?
  1、关闭apache服务器上的防火墙;
  2、apache配置文件要修改,
  <Directory "D:/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
  #
  # 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> 
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表