尝试从网络访问XAMPP时出错 [英] Error when trying to access XAMPP from a network

查看:111
本文介绍了尝试从网络访问XAMPP时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试 access Xampp from a network 时遇到以下错误,但不知道如何解决.任何帮助吗?我真的很困惑

I get following error when trying to access Xampp from a network I've tried but does not get any idea how to resolve it. Any help??I really confused

禁止访问:

只能从本地网络访问对所请求对象的访问.可以在文件"httpd-xampp.conf"中配置此设置.

Access Forbidden :

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

推荐答案

在您的 xampppath \ apache \ conf \ extra 打开文件 httpd-xampp.conf 并找到以下标记:

In your xampppath\apache\conf\extra open file httpd-xampp.conf and find the below tag:

# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
    Deny from all
    Allow from ::1 127.0.0.0/8 
    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>

并添加

"Allow from all"

从:: 1 127.0.0.0/8 {line}起允许之后

after Allow from ::1 127.0.0.0/8 {line}

重新启动xampp,您就完成了.

Restart xampp, and you are done.

在Xampp的更高版本中

...您只需删除此部分

...you can simply remove this part

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

来自同一文件,它应该可以在本地网络上工作.

from the same file and it should work over the local network.

这篇关于尝试从网络访问XAMPP时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆