WAMP不能禁止本地网络403访问 [英] WAMP Cannot access on local network 403 Forbidden

查看:634
本文介绍了WAMP不能禁止本地网络403访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题已经被问过很多次

I know this question has been asked a lot of times

我跟大部分的答案在互联网上,但我仍然得到同样的消息

I followed Most of the answers in the internet But I still get the same Message

403禁止

您没有权限访问/在此服务器上。

You don't have permission to access / on this server.

这是奇怪的,当我访问使用同一台PC为 本地主机:1234 它运行正常,但如果我Access中使用我的IP地址< STRONG> 192.168.0.188:1234

It is weird that when I access using the same PC to localhost:1234 it runs normally but if I access using my IP address 192.168.0.188:1234

另外这是非常奇怪的是,我想向其他电脑上,没有我可以访问到PC的任何配置安装WAMP。

Also which is really weird is that I tried to install WAMP on other PC and without any configuration I could access to that PC.

因此​​,我认为这是因为McAfee和防火墙等我打开寡妇和McAfee端口,什么都没有改变我也关闭了防火墙,仍然没有改变。

So I thought it's because McAfee and Firewall so I open port on Widows and McAfee and nothing changed also I turned off Firewall and still nothing change.

那么没有理由我是通过路由器端口转发开放端口,仍然没有改变。

Then for no reason I opened port through the Router "port forwarding" and still nothing changed.

我不认为这是因为我在WAMP配置,因为我仍然能够通过使用其它PC无需任何配置我能得到这个 403禁止消息,也访问它。

I don't think that it's because my configuration in WAMP since I am still able to get this 403 Forbidden Message and also by using other PC without any configuration I could access it.

两台计算机都安装这样的:

Both PCs are setup like this:

的Windows 8专业版


  • WAMP Wampserver: 2.4

  • Apache的版本: 2.4.4

  • PHP版本: 5.4.12

  • MySQL的版本: 5.6.12

  • WAMP Wampserver: 2.4
  • Apache Version: 2.4.4
  • PHP Version: 5.4.12
  • MySQL Version: 5.6.12

在访问PC使用的微软安全必备

人迹罕至的PC使用的的McAfee互联网安全

The inaccessible PC uses McAfee Internet Security.

我试图把关闭WAMP 开始IIS 对于Microsoft服务器(我完美的作品在任何PC),但WAMP仍然没有不工作

I tried to turn off WAMP and start IIS For Microsoft Server (I works perfectly From any PC) but WAMP is still not not working

我跟着这些教程:

  • How to Access WAMP Server in LAN or WAN
  • Install & Setup Virtual Host Guide for WAMP
  • Install & Setup LAN & Worldwide Access Guide for WAMP

和堆栈溢出的答案在这里:

And the Stack Overflow answers here:

  • Cannot access wamp server on local network
  • WAMP 403 Forbidden message on Windows 7

推荐答案

默认情况下Wampserver自带配置为安全,因为它可以,所以阿帕奇设置为仅允许从运行WAMP的计算机访问。毕竟它应该是一个的发展的服务器和的的现场服务器。

By default Wampserver comes configured as securely as it can, so Apache is set to only allow access from the machine running wamp. Afterall it is supposed to be a development server and not a live server.

也有一个与WAMPServer 2.4发布了一个小错误在那里使用旧的Apache 2.2的语法,而不是新的Apache 2.4语法的访问权限。

Also there was a little error released with WAMPServer 2.4 where it used the old Apache 2.2 syntax instead of the new Apache 2.4 syntax for access rights.

您需要更改安全在Apache设置,以允许从其他地方访问,因此修改的httpd.conf 文件。

You need to change the security setting on Apache to allow access from anywhere else, so edit your httpd.conf file.

从更改本节:

#   onlineoffline tag - don't remove
     Order Deny,Allow
     Deny from all
     Allow from 127.0.0.1
     Allow from ::1
     Allow from localhost

要:

#   onlineoffline tag - don't remove
    Require local
    Require ip 192.168.0

要求本地允许来自这些IP的 127.0.0.1和放大器访问;本地主机和功放; :: 1

The Require local allows access from these ip's 127.0.0.1 & localhost & ::1.

语句需要IP 192.168.0 将允许您从任何IP访问Apache服务器内部网络上。此外,它允许使用从服务器计算机服务器mechines实际IP地址,因为你正在尝试做的访问。

The statement Require ip 192.168.0 will allow you to access the Apache server from any ip on your internal network. Also it will allow access using the server mechines actual ip address from the server machine, as you are trying to do.

这篇关于WAMP不能禁止本地网络403访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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