Problème squid

Quand je relance squid, j’obtiens le message d’erreur suivant:

Restarting Squid HTTP proxy: squid* Creating squid spool directory structure
FATAL: Could not determine fully qualified hostname. Please set ‘visible_hostname’

Squid Cache (Version 2.6.STABLE5): Terminated abnormally.
CPU Usage: 0.012 seconds = 0.012 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
squid: line 74: 4984 Abandon $DAEMON -z
FATAL: Could not determine fully qualified hostname. Please set ‘visible_hostname’

Squid Cache (Version 2.6.STABLE5): Terminated abnormally.
CPU Usage: 0.016 seconds = 0.012 user + 0.004 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
squid: line 74: 4986 Abandon start-stop-daemon --quiet --start --pidfile $PIDFILE --chuid $CHUID --exec $DAEMON – $SQUID_ARGS </dev/null
failed!

Qu’est ce que cela signifie?

[quote]# TAG: visible_hostname

If you want to present a special hostname in error messages, etc,

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.

[/quote]
c’est dans le fichier /etc/squid/squid.conf

En clair, rajoute dans ton fichier squid.conf une ligne

où pouet est le nom de ta machine.

Je te remercie pour l’information, ça fonctionne! Je pense qu’à l’avenir j’aurai peut-être encore besoin de tes services… :blush: