Страница 1 из 1

ERROR The requested URL could not be retrieved

Добавлено: 2011-12-27 15:04:25
Ridik5533
ERROR
The requested URL could not be retrieved

While trying to process the request:
GET / HTTP/1.1
User-Agent: Opera/9.80 (Windows NT 6.1; U; ru) Presto/2.10.229 Version/11.60
Host: 192.168.1.1
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: ru-RU,ru;q=0.9,en;q=0.8
Accept-Encoding: gzip, deflate
Pragma: no-cache
Cache-Control: no-cache
Connection: Keep-Alive



The following error was encountered:
Invalid Request

Some aspect of the HTTP Request is invalid. Possible problems:
Missing or unknown request method
Missing URL
Missing HTTP Identifier (HTTP/1.0)
Request is too large
Content-Length missing for POST or PUT requests
Illegal character in hostname; underscores are not allowed

Your cache administrator is webmaster.
Generated Tue, 27 Dec 2011 12:07:45 GMT by ****** (squid/2.7.STABLE9)
Что может быть не так? Установил apache13 и squid (FreeBSD8.2), для теста работы апача ввожу http://192.168.1.1/, а оно мне открывает эту ошибку!
Кто подскажет в чем проблема? думаю рыть в squid'е, но что именно? ставил apache22 - тоже самое!
HELP!

Re: ERROR The requested URL could not be retrieved

Добавлено: 2011-12-27 17:01:49
ivan_k
надо смотреть squid.conf
может у Вас параметр

Код: Выделить всё

request_header_max_size
очень мал

Re: ERROR The requested URL could not be retrieved

Добавлено: 2011-12-28 17:41:28
Ridik5533
Спасибо ivan_k за помощь! только решение оказалось другим надо было в ee squid.conf
# ee /usr/local/etc/squid/squid.conf
строку
# Squid normally listens to port 3128
http_port 3128
изменить на
# Squid normally listens to port 3128
http_port 127.0.0.1:3128 transparent
при том что в rc.firewall
# ee /etc/rc.firewall
будет стоять
# Принудительно заворачивать всех внутренних пользователей обращающихся к любым адресам по протоколам http,https,ftp
# на squid (смотри примечание 1 и 2)
# Правило fwd должно быть выше правила divert иначе оно не будет работать
${fwcmd} add fwd 127.0.0.1,3128 tcp from ${NetInIP}/${NetInMask} to any http via ${LanIn}
Тогда, то все и заработало! Спасибо за помощь=)