Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 Server Error 500 - doh!
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Thu Apr 28, 2005 5:04 pm    Post subject: Apache2 Server Error 500 - doh! Reply with quote

ciao a tutti,
ho installato apache-2.0.52-r1 a lavoro sul un server di rete con gentoo (l'invasione continua :D )
ma una volta avviato il demone, collegandosi a http://localhost/ dalla medesima macchina
ottengo un:
Code:
500 Server Error
Server Error
[code=CANT_CONNECT_LOOPBACK] Cannot connect due to potential loopback problems
Please contact the administrator.



il server in questione svolge mansioni di "router" ha infatti 2 schede di rete:
eth0: => lan
eth1: => inet (outside)

tramite iptables tutte le richieste dei clients provenienti su eth0
vengono "forwardati" ad un'altra macchina (proxy) che sta da
qualche parte nella rete, su eth1.

CANT_CONNECT_LOOPBACK dipende forse da un /etc/hosts errato?

EDIT:Iptables è ok rimane questo fastidioso problema con apache,
la cosa assurda è che affligge solo il server i pc che si connettono
ad apache da eth0 o eth1 non hanno problemi!!
_________________
"...There are two sort of lies, lies and benchmarks..."


Last edited by X-Drum on Tue May 03, 2005 10:59 pm; edited 2 times in total
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Thu Apr 28, 2005 6:28 pm    Post subject: Re: Apache2 Server Error 500 - doh! Reply with quote

non ti so aiutare, perché non mi è mai capitata una cosa del genere, mi spiace... però ti posso indicare la strada :wink:
il codice 500 sta per "internal server error", quindi non stare a preoccuparti del firewall perché sei completamente fuori strada (a meno che tu non abbia fatto la furbata di chiudere l'interfaccia di loopback con il firewall)
secondo me se cerchi su qualche forum dedicato ad apache hai qualche speranza di trovare qualcosa.
su due piedi, però, io controllerei la configurazione, verificando che non ci siano direttive collidenti, e giusto perché viene citato, uno sguardo al dispositivo di loopback lo darei
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Thu Apr 28, 2005 6:37 pm    Post subject: Re: Apache2 Server Error 500 - doh! Reply with quote

k.gothmog wrote:

il codice 500 sta per "internal server error", quindi non stare a preoccuparti del firewall perché sei completamente fuori strada (a meno che tu non abbia fatto la furbata di chiudere l'interfaccia di loopback con il firewall)


no credo che non dipenda dall'interfaccia di loopback, quando le regole di iptables vengono flushate
il comportamento è analogo: http://localhost/ riporta errore 500 :|

non so penso di aver impostato male il routing...almeno credo ci sto andano giu' di cranio su
questa cosa.....:cry:
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Thu Apr 28, 2005 6:42 pm    Post subject: Re: Apache2 Server Error 500 - doh! Reply with quote

X-Drum wrote:
non so penso di aver impostato male il routing...almeno credo ci sto andano giu' di cranio su questa cosa.....:cry:

ma se l'errore lo da nella connessione a localhost non può essere un problema di routing...
dai un'occhiata alle direttive deve esserci per forza qualcosa di sbagliato lì dentro.
comincia a commentare blocchi di httpd.conf e vedi cosa succede
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Thu Apr 28, 2005 9:39 pm    Post subject: Reply with quote

Ma se fai down delle due interfaccie (eth0 ed eth1) funziona?
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Tue May 03, 2005 11:01 pm    Post subject: Reply with quote

*bump*
le connessioni provenienti da eth0 o eth1 non danno problemi
ma dal server ci si puo' solo connettere tramite l'indirizzo di eth1 :|
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
iridium103
Tux's lil' helper
Tux's lil' helper


Joined: 08 Mar 2004
Posts: 104
Location: Treviso

PostPosted: Wed May 04, 2005 7:21 am    Post subject: Reply with quote

provo a dirne una io... il file di configurazione di apache.. magari basta aggiungere

Code:

Listen 127.0.0.1:80



se è una soluzione già provata.. allora scusatemi ma per adesso è l'unica cosa che mi venga in mente..



P.S.= magari qualche impostazione di iptables...???
_________________
Imagination is more important than knowledge.
Albert Einstein
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Wed May 04, 2005 8:41 am    Post subject: Reply with quote

ti ringrazio per il consiglio ma ho già provato la direttiva listen
su tutte le interfacce (eth0,eth1,lo ovvero listen *:80)
piu' tutte le altre combinazioni ma il problema persiste.


Iptables è ok,
ho constatato che il nat aka masquerade e/o altre regole
non incidono su tale discorso (per sicurezza ho pure flushato)
ma nulla
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum