如何访问网站通过局域网运行的Apache服务器没有互联网连接 [英] How to access site running apache server over lan without internet connection

查看:166
本文介绍了如何访问网站通过局域网运行的Apache服务器没有互联网连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Windows XP SP2的计算机上使用的EasyPHP运行的服务器。让我们把它叫做computer_1。
计算机的IP地址为192.168.1.2

I am running a server on Windows XP SP2 computer using EasyPhp. Lets call it computer_1. The ip address of computer is 192.168.1.2

现在我对局域网的另一台计算机(computer_2),IP地址为192.168.1.3

Now I have another computer ( computer_2) on the lan with ip address 192.168.1.3

我想从computer_2访问该网站上computer_1。

I want to access the site on computer_1 from computer_2.

comupter_2可以ping computer_1(平192.168.1.2作品)

comupter_2 can ping computer_1 (ping 192.168.1.2 works)

但是,当我键入 http://192.168.1.2 在computer_2的浏览器,什么都不会发生。

But when I type http://192.168.1.2 in the browser of computer_2, nothing happens.

我想从computer_2访问该网站上comupter_1。

I want to access the site on comupter_1 from computer_2.

推荐答案

在你的的httpd.conf 请确保您有:

Listen *:80

如果你使用的是VirtualHosts然后将它们下面给出:

And if you are using VirtualHosts then set them as given below:

NameVirtualHost *
<VirtualHost *>
   ...
</VirtualHost>

这篇关于如何访问网站通过局域网运行的Apache服务器没有互联网连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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