-1

我正在尝试使用我的主机名打开我的主机地址,但出现以下错误:

您可以在上面看到主机 URL。
有人可以帮我解决这个问题吗?

4

1 回答 1

0

正如错误所述,您无法在本地网络之外访问它。换句话说 - 您的 apache xampp 配置为仅接受来自 127.0.0.1 或 localhost 的调用。对于 xampp,这是在 apache 的位置匹配指令中定义的,请查看以下主题,它涵盖了最常见的情况。但是请注意,这可能是安全问题。

http://www.apachefriends.org/f/viewtopic.php?p=185823

这将为您提供有关如何配置允许和拒绝的更多信息 http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow

像这样的东西应该在你的 httpd-xampp.conf

<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 **your.local.ip.address**
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
于 2013-09-30T11:14:18.027 回答