尝试在互联网上托管我的本地主机.我在这里想念什么? [英] Trying to host my localhost on the internet. What am I missing here?

查看:162
本文介绍了尝试在互联网上托管我的本地主机.我在这里想念什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使我的本地主机在网络上运行,以便任何人都可以访问它.我是一个完整的菜鸟.这是我在Windows 7、64位,WAMP 2.4及更高版本上运行时所采取的步骤.使用noip.com

Trying to get my localhost live on the web so anyone can access it. I am a complete noob. Here are the steps I have taken, running on a Windows 7, 64bit, with WAMP 2.4 & using noip.com

  • 使用noip注册帐户并下载DYC v4.1.1
  • noip为我分配了主机名susanlafond.ddns.net,其ip/url 142.120.137.70 从noip.com截屏

  • Signed up for account with noip and downloaded DYC v4.1.1
  • noip assigned me the hostname susanlafond.ddns.net with the ip/url 142.120.137.70 screenshot from noip.com

下载WAMP服务器并安装

download WAMP server and installed

编辑了Apache httpd.conf.txt并进行了以下更改

Edited Apache httpd.conf.txt and made the following changes

apache屏幕截图(a) apache屏幕截图(b) apache屏幕截图(c) apache屏幕截图(d)

我运行了apache端口检查,报告说我的端口80被apache使用,我认为这是正确的 apache端口80测试

I ran apache port check and it reported my port 80 is used by apache, which i believe is correct apache port 80 test

我进入了路由器设置,并在ipv4地址上将端口转发了端口80 linksys路由器端口转发

I went to my router settings and port forwarded port 80 on my ipv4 address linksys router port forwarding

现在,请紧记,我不知道自己在做什么,而我实际上只是在遵循youtube教程将其付诸实践.但是根据我所观看和阅读的所有内容,我已经正确地完成了所有操作.当我去 从任何浏览器访问susanlafond.ddns.net,我都应该能够看到我的网站托管在Internet上,但我没有.

Now at this point, keep in mind, I have no idea what I'm doing and I'm literally just following youtube tutorials to get this thing off the ground here. But according to everything I've watched and read, I've done everything correctly. When I go to susanlafond.ddns.net from any browser I should be able to see my site being hosted on the internet, but I do not.

在匿名代理站点上对我的url进行的测试产生了以下结果: zend2 url测试 并且我的公共IP地址上的端口检查显示没有对端口80的访问,超时了

A test of my url on an anonymous proxy site yielded these results: zend2 url test and a portcheck on my public ip address shows no access to port 80, timed out

请帮助,我不知道这是否是寻求帮助的合适地点,我在所有方面都非常陌生,但时间至关重要,在此,任何帮助都将不胜感激. p>

Please help, I have no idea if this is even the right place to ask for help, I am so new at all of this, but time is of the essence here, any help is greatly appreciated.

推荐答案

VirtualHost指令中,您需要使用它:

In the VirtualHost directive, you need to have this instead:

<VirtualHost *:80>

    ServerName susanlafond.ddns.net 

    DocumentRoot C:\wamp\www

</VirtualHost>

VirtualHost指令告诉Apache,当此ServerName进入80端口时,提供DocumentRoot中的文件.

The VirtualHost directive tells Apache, when this ServerName comes in on the 80 port, serve up the files in the DocumentRoot.

否则,我相信你已经快到了.

Otherwise, I believe you are nearly there.

这篇关于尝试在互联网上托管我的本地主机.我在这里想念什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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