Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
APACHE
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
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Sat Apr 12, 2003 2:23 pm    Post subject: APACHE Reply with quote

Ho un problemaccio con apache... lo installo e va tutto ok, se nn tocco le configurazioni quando lo avvio mi segnala che il nome dell'host viene impostato a 127.0.0.1, e il server non si avvia. Se cambio il nome dell'host, non da piu' il problema, ma non si avvia lo stesso.
L'errore non so nemmeno quale sia, poiche' nei log non trovo nulla di interessante, trovo un alert unable to gethostbyname("akiross")... cosa significa??
grazie
ciao
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
enx89
Apprentice
Apprentice


Joined: 21 Mar 2003
Posts: 192
Location: Milano

PostPosted: Sat Apr 12, 2003 3:16 pm    Post subject: Reply with quote

Quote:
unable to gethostbyname("akiross")

Mah, traducendo sembra che non riesca a capire quale host sia akiross. Nel file /etc/hosts ha inserito l'indirizzo ip del tuo computer e il relativo nome nel formato
Code:
ip  miocomputer.miodominio       miocomputer
?
Back to top
View user's profile Send private message
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Sat Apr 12, 2003 4:45 pm    Post subject: Reply with quote

ummm
ho solo
127.0.0.1 localhost
192.168.1.1 router
e stop
devo metterci qualcosa come
127.0.0.1 akiross akiross

?
grazie
ciao
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Sat Apr 12, 2003 5:21 pm    Post subject: Reply with quote

si, ho messo quello... funge funge funge ^_^
grassie mille millioni
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
enx89
Apprentice
Apprentice


Joined: 21 Mar 2003
Posts: 192
Location: Milano

PostPosted: Sun Apr 13, 2003 10:41 am    Post subject: Reply with quote

Domanda, magari inutile e banale, hai una scheda di rete e quindi un ip assegnato ad essa? Se è così nel file /etc/hosts dovresti mettere qualcosa del tipo
Code:
indirizzo_ip_della_sheda_di_rete   akiross.il_tuo_dominio   akiross
, perchè normalmente a
Code:
127.0.0.1
gli si associa il nome
Code:
localhost
che sta ad indicare il computer locale senza passare attraverso l' interfaccia di rete.
ENx
Back to top
View user's profile Send private message
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Sun Apr 13, 2003 12:41 pm    Post subject: Reply with quote

ah bho!
pero', adesso ke ci penso... io dovrei avere una rete con un router e il mio pc.
Il mio PC dovrebbe essere 192.168.1.2, mentre il router .1.1
quindi devo fare cosi'?

grazie
ciao
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
enx89
Apprentice
Apprentice


Joined: 21 Mar 2003
Posts: 192
Location: Milano

PostPosted: Sun Apr 13, 2003 9:00 pm    Post subject: Reply with quote

Allora...
nel file /etc/hostname dovresti avere qualcosa del tipo
Code:
akiross.il_tuo_dominio.it
poi nel file /etc/hosts
Code:
192.168.1.2   akiross.il_tuo_dominio.it   akiross

In realtà la linea del router non serve. Ma è un router adsl?
Cmq in questo modo dici al tuo computer che deve risolvere il nome
Code:
akiross
o
Code:
akiross.il_tuo_dominio.it
in
Code:
192.168.1.2
,in modo da inoltrare le richieste verso quei due nomi all' indirizzo giusto!
ENx


Last edited by enx89 on Sun Apr 13, 2003 9:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Sun Apr 13, 2003 9:03 pm    Post subject: Reply with quote

si, ho il router ADSL
ma in host risolvo gia il mio nome mettendolo a fianco di locahost, infatti apache va sia con
http://localhost/
che con
http::/akiross/

grazie
ciao
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
enx89
Apprentice
Apprentice


Joined: 21 Mar 2003
Posts: 192
Location: Milano

PostPosted: Sun Apr 13, 2003 9:14 pm    Post subject: Reply with quote

ho capito che funziona lo stesso, hai associato a 127.0.0.1 il nome akiross!!! Normalente si associa solo localhost a 127.0.0.1 perchè è un indirizzo apeciale che identifica localhost e non akiross! Se cerchi di accedere da un altro computer al tue web server non so se funziona! A meno che a te serve per scopi locali, allora è un altro discorso.
Per essere pignoli dovresti cambiare la tua configurazione... :wink: :wink:
Ciao ENx
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