View previous topic :: View next topic |
Author |
Message |
Bague Apprentice
Joined: 09 Feb 2004 Posts: 292
|
Posted: Sat Oct 30, 2004 6:04 pm Post subject: Apache Refuses Connection |
|
|
I am setting up ana apache webserver on gentoo, in the past this was really easy, but it is giving me problems at the moment.
I forwarded port 80 for the machine, and ran "emerge apache", let that finish,then did "rc-update add apache2 default", then rebooted my server. WHen I try to connect from even my local network, I get "connection refused". Does anyone know what might be causing this? |
|
Back to top |
|
|
DL8 n00b
Joined: 27 Jul 2004 Posts: 54 Location: Israel
|
Posted: Sat Oct 30, 2004 7:07 pm Post subject: |
|
|
Are you sure you've configured Apache to listen to port 80? Have you tried connecting to your outside IP (e.g eth0) or localhost (127.0.0.1 or ::1)? |
|
Back to top |
|
|
Bague Apprentice
Joined: 09 Feb 2004 Posts: 292
|
Posted: Sat Oct 30, 2004 9:21 pm Post subject: |
|
|
127.0.0.1 also says connection refused. |
|
Back to top |
|
|
Nossie Apprentice
Joined: 19 Apr 2002 Posts: 181
|
Posted: Sat Oct 30, 2004 11:41 pm Post subject: |
|
|
Are you sure apache is actualy running ? |
|
Back to top |
|
|
Bague Apprentice
Joined: 09 Feb 2004 Posts: 292
|
Posted: Sat Oct 30, 2004 11:42 pm Post subject: |
|
|
Hmmm, I tried manually running /etc/init.d/apache start and it still will not connect. The httpd appears to be running, yet there i no way to connect? Any ideas? |
|
Back to top |
|
|
Bague Apprentice
Joined: 09 Feb 2004 Posts: 292
|
Posted: Sun Oct 31, 2004 12:35 am Post subject: |
|
|
Something I noticed, my Desktop machine and my server somehow have the same IP. Is there anyway that this could be causing the problem? How can I fix this?
I don't think that is the problem though, since localhost still wont load.
Also, can anyone tell me a good program that will retreive my WAN IP and update it to dyndns every hour? I have a dynamic IP, and I want a program that keeps the one in dyndns up to date.
I saw this page, https://www.dyndns.org/services/dyndns/clients.html but I am not sure which ones best for me. I want a program that I can pretty much just emerge, do a small config, and rc-update. |
|
Back to top |
|
|
Bague Apprentice
Joined: 09 Feb 2004 Posts: 292
|
Posted: Sun Oct 31, 2004 6:23 am Post subject: |
|
|
Hmmm, apache seems to be putting this in "error_log"
Code: |
[alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "prometheus"
Configuration Failed
|
Any idea what is causing this and how to fix it?
Nevermind, I simply commented out the unique_is line and its fully working now. |
|
Back to top |
|
|
r1k0d3r n00b
Joined: 19 Oct 2004 Posts: 33 Location: on a radiowave
|
Posted: Sun Oct 31, 2004 12:36 pm Post subject: |
|
|
hi,
can you post you httpd.conf so that we can have more informations about your server? _________________ Last night, i&i dreamt i ate a giant marshmallow, and this morning when i wuk up, my pillow had disappeared...wtf ?!?! |
|
Back to top |
|
|
voxorb n00b
Joined: 31 Oct 2004 Posts: 1
|
Posted: Sun Oct 31, 2004 5:34 pm Post subject: |
|
|
Bague wrote: | Hmmm, apache seems to be putting this in "error_log"
Code: |
[alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "prometheus"
Configuration Failed
|
Any idea what is causing this and how to fix it?
Nevermind, I simply commented out the unique_is line and its fully working now. |
add prometheus to your /etc/hosts |
|
Back to top |
|
|
|