Saturday, June 4, 2011

Customize Squid Error Messages

To customize the Squid errors you need to edit the Squid error template files.

On Ubuntu they are located in “/usr/share/squid/errors/English” (replace English with your specific Language).

Using the Squid error message you receive in your browser search in the the above directory until you find it.

I wanted to change the error message returned when a connection is refused or fails. This is located in the file ERR_ACCESS_DENIED file in the above mentioned directory

Opening this fiile in vi (as root or using sudo) and change the text.

No comments:

Post a Comment