zoukankan      html  css  js  c++  java
  • XAMPP非本地访问被拒绝解决办法

    问题场景:

      本机搭建一个apache服务器,正常访问XAMPP目录下的页面。

      手机接入同一wifi,以电脑ip方式访问该目录下的页面;提示:Access Denied

      Access to the requested directory is only available from the local network.
    This setting can be configured in the file “httpd-xampp.conf”.   

    解决办法:

      1、按照提示找到httpd-xampp.conf文件,路径在“/xampp/apache/conf/extra/httpd-xampp.conf”

      2、文本编辑器打开文件,找到配置项:New XAMPP security concept

      3、注释原来的配置修改为允许访问。

      

    #
    # New XAMPP security concept
    #
    <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    #Require local
    AllowOverride AuthConfig
    Require all granted
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
    </LocationMatch>

  • 相关阅读:
    浅谈display:flex
    MVVM
    HDFS 伪分布式集群搭建
    HDFS入门
    Hadoop-HDFS
    Hadoop介绍
    大数据-高并发Nginx
    大数据-高并发LVS3Keepalived
    大数据-高并发LVS2实验
    大数据-高并发LVS1
  • 原文地址:https://www.cnblogs.com/MrCandy/p/4243036.html
Copyright © 2011-2022 走看看