I'm trying to build a small website with Apache2.
If I type localhost in the firefox address bar it works but if I type my dyndns host address it doesn't work, after a while it just quits.
I've put configured port-forwarding for ssh and that works. So I added another forwarding line port 80 outbound, port 80 inbound to my local ip-address. But for some reason that doesn't work.
Nmap gives this reading:
Code:
Starting Nmap 4.76 ( http://nmap.org ) at 2009-03-29 18:21 CEST
Interesting ports on localhost (127.0.0.1):
Not shown: 997 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
631/tcp open ipp
Device type: general purpose
Running: Linux 2.6.X
OS details: Linux 2.6.17 - 2.6.25
Network Distance: 0 hops
So I think my port 80 for http requests is open.
I think Apache is up and running fine because it's working on the local network (also from another host)
Code:
user@box:~$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[ OK ]
user@box:~$
I don't know what that is but if apache is not running it doesn't show my website when I type localhost in firefox isn't it?
My best guess is that it's somewhere in the port forwarding, but that's exactly the same configured as my ssh line, I changed the port from 22 to 80.
Just to make sure: It's possible to run SSH and at the same time http, isn't it?