从本地网络访问时,WAMP错误紫禁城 [英] Forbidden error when accessing wamp from local network
问题描述
好吧,现在,这个问题已经快把我逼疯了一个星期!我希望我们能够找到一个解决办法在一起。
Okay now, this problem has been driving me crazy for a week! I hope we will find a solution together.
我想我的WAMP的服务器配置为在本地网络上运行(来自本地网络accessable)。具体来说,我想访问使用局域网连接从另一台计算机保存在/ www文件夹的项目。我使用Windows 7我WAMP的服务器。然而,当我运行192.168.178.3:8080从另一台计算机我收到以下错误:
I am trying to configure my wamp server to run on a local network (be accessable from a local network). Specifically, I want to access a project saved in the /www folder from another computer using a local area connection. I am using Windows 7 for my wamp server. However, when I run "192.168.178.3:8080" from the other computer I get the following error:
故宫:您没有权限访问/在此服务器上
Forbidden: You don't have permissions to access / on this server.
我在 8080端口(80端口是由IIS使用)运行WAMP;
我的本地IP地址 192.168.178.3
I am running wamp on port 8080 (port 80 is used by IIS);
My local IP address is 192.168.178.3
我会尽力解释到目前为止,我做的事情...
I'll try to explain the things I have done so far...
改在httpd.conf以下内容:
Changed the following in httpd.conf:
Listen 192.168.178.3:8080
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
<Directory "c:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
# Online --> Require all granted
# onlineoffline tag - don't remove
Order Deny,Allow
Allow from all
Allow from 127.0.0.1
Require local
</Directory>
<Directory "c:/wamp/www/project">
allow from all
</Directory>
<Directory "cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
另外,我插在HTTP-vhosts.conf以下行:
Also, I inserted the following lines in http-vhosts.conf:
<VirtualHost 192.168.178:8080>
DocumentRoot "C:/wamp/www/project"
</VirtualHost>
我已经重新开始一切,把服务器的在线,但仍然得到同样的错误。
I've restarted everything and put the server Online but still get the same error.
任何帮助或建议将是AP preciated。
Any help or suggestion would be appreciated.
感谢你在前进!
推荐答案
我实际上设法解决我的问题。
I actually managed to solve my problem.
8080端口似乎是造成问题(怪异的右边)。于是我重新安装WAMP只有(使用端口8070)提出了以下变化在httpd.conf:
The port 8080 seemed to be causing problems (weird right). So I reinstalled wamp and only made the following changes in the httpd.conf (using port 8070):
Listen 192.168.178.3:8070
<Directory "cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
另外,我不得不添加卡巴斯基防火墙端口的异常,以及配置路由器转发端口。
这解决了它。
Also, I had to add an exception of this port in the Kaspersky firewall, as well as configuring the router to forward the port. That solved it.
这篇关于从本地网络访问时,WAMP错误紫禁城的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!