LinuxForum.Fans
Тема

squid генерирование сообщений [решено]

Автор: pervu 5 сообщений 4311 просмотров
#28002

Привет всем!
К примеру я ограничил доступ к инету у ПК, если я ввожу в браузере какой либо адрес, он мне выдает ошибку:

text
ERROR
The requested URL could not be retrieved

--------------------------------------------------------------------------------

The following error was encountered while trying to retrieve the URL: http://clck.yandex.ru/redir/AiuY0DBWFJ4ePaEse6rgeAjgs2pI3DW99KUdgowt9XvqxGyo_rnZJpNjfFDg3rinl_nDXDSYmY6869MMobeoP8MkoNMzF2N9Z2tv46mjLf1CuiyHN8OzdmOTeu2jEll6x8HffSgG3nw?

Access Denied.

Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.

Your cache administrator is webmaster.

--------------------------------------------------------------------------------

Generated Thu, 15 Apr 2010 06:43:30 GMT by rghl_proxy (squid/3.0.STABLE13)

Вобщем то все так и должно быть.:)
Но у меня вопрос: как эту сгенерированную страницу изменить, т.е. вписать туда что-нибудь свое. Это вообще возможно?

А то гуглил я, гуглил, так ничего и не нашел по этому вопросу...

#28005

man squid :)
Далее по делу:
смотри /etc/squid/errors а так же в squid.conf

# TAG: error_directory
# If you wish to create your own versions of the default
# (English) error files, either to customize them to suit your
# language or company copy the template English files to another
# directory where the error files are read from.
# /usr/lib/squid/errors contains sets of error files
# in different languages. The default error directory
# is /etc/squid/errors, which is a link to one of these
# error sets.
#
# If you wish to create your own versions of the error files,
# either to customize them to suit your language or company,
# copy the template English files to another
# directory and point this tag at them.
#
# The squid developers are interested in making squid available in
# a wide variety of languages. If you are making translations for a
# langauge that Squid does not currently provide please consider
# contributing your translation back to the project.
#error_directory /usr/lib/squid/errors/English
#
#Default:
error_directory /usr/lib/squid/errors/Russian-1251

#28006

У меня в /etc/squid/errors лежат в виде файлов все эти сообщения. Там и правьте

#28008

О, пасиб, чувствую себя идиотом :)
а вообще man squid я смотрел, только видимо невнимательно...

#28009

ставь тег [решено], и закроем тему :)

Войдите или зарегистрируйтесь, чтобы ответить.