Forum Moderators: phranque

Message Too Old, No Replies

Apache Newbie Problems

         

niss3

1:55 pm on Jan 29, 2009 (gmt 0)

10+ Year Member



Hello!

I've looked around in the forums and found several posts
about almost same problem as me. But I can't just fix my
problem with the help you've all give the others. So it would
be really great if I with my bad english could get some help
so that I can understand my own problem.

The thing is that I've recently installed apache webserver 2.2.
It works good when testing with localhost (127.0.0.1) and connecting
to my computer with Lan ip from other computers in the network
(192.168.1.***).

Then there is this problem. My router is set to portforward all
ports to my computer. Because it's only my computer that needs
ports opend. So I've just opened them all to my computer, and
because this didn't work I even put the computer on DMZ.
The problem is as you might have guessed by now, I can't access
my apache web server homepage at my computer from outside
my network (Ip 217.210.200.***).

I've tried to find the problem on my own by searching at google
and asking other people for help. But I just can't find the problem.
I've tried doing everything I can with the router. And I've tried almost
everything with apache server configuration (the things I understand
anyway). I noticed that when I change listen port from 80 to something
else, it doesn't work even on localhost / network or remote.
Is that weard?

Anyway. Please help me solve this problem. If it helps I could
reset the router and reinstall apache so I start from zero.
Thanks for all answeres in advance!

jdMorgan

5:33 pm on Jan 29, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want to connect to your server on a port other than 80, then that port must be specified in the URL. For example, on port 8080: http://217.210.200.***:8080/mypage.html

If your router is correctly set up to port-forward from 217.210.200.*** to the LAN IP address of your server, and Apache is already working on your local network, then it is most likely that you have a problem with firewall settings on the server itself.

This sounds like either a router configuration problem or a server firewall problem, not a problem with Apache itself.

Be aware that many ISPs do not allow running a server on their networks. Since a server's traffic profile is easy to detect, you may risk losing your internet service by doing so. Some ISPs will block port 80 to prevent their customers from running servers, because their networks are not engineered to support server traffic.

Jim

niss3

7:32 pm on Jan 29, 2009 (gmt 0)

10+ Year Member



haha.. It was such a simple error. I just turned off the firewall on the server to test and that was the fault. Thank you ^^

niss3

7:57 pm on Jan 29, 2009 (gmt 0)

10+ Year Member



Back to same problem again.

It worked great.. for like 10 minutes.
I installed php 5, set default directory file to index.php.
And now I can't access the page _at all_.
Anywhere.

It always say:
Failed to Connect

The connection was refused when attempting to contact localhost.

Though the site seems valid, the browser was unable to establish a connection.

* Could the site be temporarily unavailable? Try again later.

* Are you unable to browse other sites? Check the computer's network connection.

* Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.
(Shouldn't be this considering it worked few secounds ago)