Apache的主服务器连接到内部网络,而不是出于域 [英] Apache home server connects to domain inside network and not out

查看:151
本文介绍了Apache的主服务器连接到内部网络,而不是出于域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我有一个老的Windows XP的PC即时试图变成了爱好者目的的服务器。我下载并安装了Apache XAMPP 1.8分布。一旦安装并测试了本地主机的工作,我连我的域名到我的服务器的IP。所以我的问题是,当我试图连接到我对我在同一个网络上的PC站点,他们都能够加载域/网站在网络里面成功,但是当我在网络之外的PC多数民众赞成尝试失败。有任何想法吗?。谢谢。

Hello i have an old windows xp pc im trying to turn into a server for hobbyist purposes. I downloaded and installed the apache xampp 1.8 distribution. Once installed and tested that the localhost worked, I connected my domain to my servers ip. So my problem is when i tried to connect to my site on my pc on the same network, they all were able to load the domain/site inside the network successfully but when i have a pc thats outside the network try it fails. Any ideas?. thanks.

推荐答案

您已经使用私有IP,而不是公网IP,所以它不会解决到您的服务器。你必须使用一个公共IP(如果您有您的供应商设置端口转发静态IP你有你的路由器上。)如果你从DHCPD服务器的IP,您需要使用动态DNS和端口转发。

You have used a private IP instead of public IP so it does not get resolved to your server. You have to use a public IP (if you have a static IP from your provider you have to setup port forwarding on your router.) If you get the IP from DHCPD server you will need to use dynamic DNS and port forwarding.

在专用网络上更多信息: http://en.wikipedia.org/wiki/Private_network

More info on private networks: http://en.wikipedia.org/wiki/Private_network

这篇关于Apache的主服务器连接到内部网络,而不是出于域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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