squid

В прокси-сервере squid, если им кто-то еще до сих пор пользуется. Не часто, но возникает такая вот ошибка:

ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: /tips/sml/

The following error was encountered:

* Invalid URL

Some aspect of the requested URL is incorrect. Possible problems:

* Missing or incorrect access protocol (should be `http://» or similar)
* Missing hostname
* Illegal double-escape in the URL-Path
* Illegal character in hostname; underscores are not allowed

Лекарство следующее

1) в ядре:
options         IPFIREWALL_FORWARD      #enable transparent proxy support
2) в ipfw что-то иипа так :
ipfw add fwd $proxy_ip,3128 tcp from $network_ip to any 80 via $internal_dev in
укажи не локалхост 127.0.0.1 а локальный ip сервака или его внешний ip
3) в squid.conf:
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

Оставить комментарий


Примечание - Вы можете использовать эти HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>