How to set 'visible hostname': Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
[[Category: Squid]] | |||
Se in fase di apertura di una pagina Internet con browser lo stesso segnala un errore legato al server proxy Squid che non riesce a trovare i DNS, il problema si risolve modificando la configurazione dello Squid. Inoltre, un altro segnale di errore è dato dal fatto che, tendando di restartare il demone Squid con il comando | Se in fase di apertura di una pagina Internet con browser lo stesso segnala un errore legato al server proxy Squid che non riesce a trovare i DNS, il problema si risolve modificando la configurazione dello Squid. Inoltre, un altro segnale di errore è dato dal fatto che, tendando di restartare il demone Squid con il comando | ||
| Line 8: | Line 9: | ||
<pre> | <pre> | ||
Starting proxy server: FATAL: Could not determine fully qualified hostname. | Starting proxy server: FATAL: Could not determine fully qualified hostname. | ||
Please set 'visible_hostname' | |||
</pre> | </pre> | ||
Latest revision as of 14:50, 30 August 2005
Se in fase di apertura di una pagina Internet con browser lo stesso segnala un errore legato al server proxy Squid che non riesce a trovare i DNS, il problema si risolve modificando la configurazione dello Squid. Inoltre, un altro segnale di errore è dato dal fatto che, tendando di restartare il demone Squid con il comando
fire:/var/run# /etc/init.d/squid start
si ottiene la seguente risposta:
Starting proxy server: FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname'
Per modificare la configurazione settando il 'visible_hostname' bisogna:
vi /etc/squid/squid.conf
e inserire al posto giusto, cioè
... # TAG: visible_hostname # If you want to present a special hostname in error messages, etc, # then define this. Otherwise, the return value of gethostname() # will be used. If you have multiple caches in a cluster and # get errors about IP-forwarding you must set them to have individual # names with this setting. # #Default: # none ...
la dicitura
visible_hostname proxy.mannesmann.priv
Ovviamente il nome cambierà a seconda della macchina su cui si fa la modifica. Il file /etc/squid/squid.conf diventerà:
... # TAG: visible_hostname # If you want to present a special hostname in error messages, etc, # then define this. Otherwise, the return value of gethostname() # will be used. If you have multiple caches in a cluster and # get errors about IP-forwarding you must set them to have individual # names with this setting. # #Default: # none visible_hostname proxy.mannesmann.priv # TAG: unique_hostname # If you want to have multiple machines with the same # 'visible_hostname' then you must give each machine a different # 'unique_hostname' so that forwarding loops can be detected. # #Default: # none ...