View previous topic :: View next topic |
Author |
Message |
X-Drum Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1870365650443690caa453e.png)
Joined: 24 Aug 2003 Posts: 2517 Location: ('Modica','Trieste','Ferrara') Italy
|
Posted: Thu Apr 28, 2005 5:04 pm Post subject: Apache2 Server Error 500 - doh! |
|
|
ciao a tutti,
ho installato apache-2.0.52-r1 a lavoro sul un server di rete con gentoo (l'invasione continua )
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 |
|
![](templates/gentoo/images/spacer.gif) |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Thu Apr 28, 2005 6:28 pm Post subject: Re: Apache2 Server Error 500 - doh! |
|
|
non ti so aiutare, perché non mi è mai capitata una cosa del genere, mi spiace... però ti posso indicare la strada
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 |
|
![](templates/gentoo/images/spacer.gif) |
X-Drum Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1870365650443690caa453e.png)
Joined: 24 Aug 2003 Posts: 2517 Location: ('Modica','Trieste','Ferrara') Italy
|
Posted: Thu Apr 28, 2005 6:37 pm Post subject: Re: Apache2 Server Error 500 - doh! |
|
|
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.....![Crying or Very sad :cry:](images/smiles/icon_cry.gif) _________________ "...There are two sort of lies, lies and benchmarks..." |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Thu Apr 28, 2005 6:42 pm Post subject: Re: Apache2 Server Error 500 - doh! |
|
|
X-Drum wrote: | non so penso di aver impostato male il routing...almeno credo ci sto andano giu' di cranio su questa cosa.....![Crying or Very sad :cry:](images/smiles/icon_cry.gif) |
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 |
|
![](templates/gentoo/images/spacer.gif) |
gutter Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/67030318436dd16c1dd5e.jpg)
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Thu Apr 28, 2005 9:39 pm Post subject: |
|
|
Ma se fai down delle due interfaccie (eth0 ed eth1) funziona? _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
X-Drum Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1870365650443690caa453e.png)
Joined: 24 Aug 2003 Posts: 2517 Location: ('Modica','Trieste','Ferrara') Italy
|
Posted: Tue May 03, 2005 11:01 pm Post subject: |
|
|
*bump*
le connessioni provenienti da eth0 o eth1 non danno problemi
ma dal server ci si puo' solo connettere tramite l'indirizzo di eth1 ![Neutral :|](images/smiles/icon_neutral.gif) _________________ "...There are two sort of lies, lies and benchmarks..." |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
iridium103 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_emperor.gif)
Joined: 08 Mar 2004 Posts: 104 Location: Treviso
|
Posted: Wed May 04, 2005 7:21 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
X-Drum Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1870365650443690caa453e.png)
Joined: 24 Aug 2003 Posts: 2517 Location: ('Modica','Trieste','Ferrara') Italy
|
Posted: Wed May 04, 2005 8:41 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|