问题
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
- 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
download WAMP server and installed
- Placed index files for my site in the www folder, and tested on browser as localhost, works fine
Edited Apache httpd.conf.txt and made the following changes
apache screenshot (a) apache screenshot (b) apache screenshot (c) apache screenshot (d)
I ran apache port check and it reported my port 80 is used by apache, which i believe is correct apache port 80 test
I went to my router settings and port forwarded port 80 on my ipv4 address linksys router port forwarding
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.
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
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.
回答1:
In the VirtualHost
directive, you need to have this instead:
<VirtualHost *:80>
ServerName susanlafond.ddns.net
DocumentRoot C:\wamp\www
</VirtualHost>
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.
来源:https://stackoverflow.com/questions/61354677/trying-to-host-my-localhost-on-the-internet-what-am-i-missing-here