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

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

问题描述

我在尝试从网络访问 Xampp 时遇到以下错误我已经尝试过,但不知道如何解决它.有什么帮助吗??我真的很困惑

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

推荐答案

在你的xampppathapacheconfextra 打开文件 httpd-xampp.conf 并找到以下标签:

In your xampppathapacheconfextra 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"

在 Allow from ::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天全站免登陆