2010-01-23 88 views
3

我在我的本地笔记本电脑(Vista)上安装了XAMPP,它工作正常。 Apache和MySQL是作为服务运行的,我可以同时得到http://localhost/http://192.168.2.2/而没有任何麻烦。XAMPP Apache服务器不能在内部网络上工作

不过,如果我尝试在http://192.168.2.2/ IP地址,它错误输入超时访问我的内部网络上的另一台笔记本电脑服务器。我在这里错过了什么?

当我运行端口检查,我​​得到如下:

Service    Port Status 
============================================================================== 
Apache (HTTP)   80 Program: C:\xampp\xampp\apache\bin\httpd.exe 
Apache (WebDAV)  81 free 
Apache (HTTPS)  443 Program: C:\xampp\xampp\apache\bin\httpd.exe 

MySQL    3306 Program: C:\Program Files\MySQL\MySQL Server 5.1\bin 
\mysqld.exe 

,当我尝试远程登录到本地主机端口80,那也可以。我的httpd-vhosts.conf文件包含以下行:

<VirtualHost *:80> 
ServerName localhost 
DocumentRoot "C:/xampp/xampp/htdocs/" 
</VirtualHost> 

<VirtualHost 192.168.2.2> 
ServerName localhost 
DocumentRoot "C:/xampp/xampp/htdocs/" 
</VirtualHost> 

有什么想法?

+0

我的第一个想法是:“不涉及编程”。也许更适合在serverfault.com – 2010-01-23 16:38:36

+0

“它出错”......当您尝试从另一台机器访问192.168.2.2时,您收到了什么错误? – BenTheDesigner 2010-01-23 16:52:35

+0

对不起,我应该解决这个问题。它超时,没有错误。 – user3930756 2010-01-23 17:13:28

回答

2

通过ServerFault.com帮助回答

问题是Windows防火墙有80端口被阻止。为了解决这个问题,我打开了Windows防火墙,点击更改设置,进入例外选项卡,然后点击“添加端口”。我将名称设置为“Web服务器(TCP 80)”,端口号为80,协议为TCP,就是这样。

相关问题