Search squid archive

Re: [squid-users] Err files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Mar 27, 2005 at 08:56:09PM +0400, Sergey Shepshelevich wrote:
> On Sun, Mar 27, 2005 at 05:43:13PM +0200, Henrik Nordstrom wrote:
> > 
> > 
> > On Sun, 27 Mar 2005, Jacques van Dijk wrote:
> > 
> > >I want to remove all version info from the error files,
> > >What is the best way to o this.
> > 
> > http://www.squid-cache.org/Doc/FAQ/FAQ-19.html#custom-err-msgs
> 
> There are wrote 
> 
> " Furthermore, you can rewrite the error message template files if you like.
> This list describes the tags which Squid will insert into the messages:
> ..
>  
> %s caching proxy software with version
> ..  "
>  What the way to customize it ? Do edit pages in errors directory ?
> 
> 
>  Sorry, but substring %s or result string
>  "Generated Sun, 27 Mar 2005 16:48:23 GMT by kernel.ulstu.ru (squid/2.5.STABLE9)"
>  is not part any pages in errrors directory. 
>  
> 
> 
> 
> Thanks.


 I have done

 "The Squid default signature is added automatically unless %s is used in the error page.
 To change the signature you must manually append the signature to each error page.
 The default signature reads like:
 <BR clear="all">
 <HR noshade size="1px">
 <ADDRESS>
 Generated %T by %h (%s)
 </ADDRESS>
 </BODY></HTML>"

 and get 
=====================
 My custom error message

 Generated Sun, 27 Mar 2005 18:07:48 GMT by myhostname
 -----------
 Generated Sun, 27 Mar 2005 18:07:48 GMT by myhostname (squid/2.5.STABLE9) 

======================

 I read ChangeLog and found

 "Changes to squid-1.2.beta16 (Mar 4, 1998):
 
 - Added Squid "signature" to all ERR_ pages. The signature is
  hardcoded and is added on-the-fly. The signature may use
  %-escapes.  Added interface to add more hard-coded responses if
  needed (see errorpage.c::error_hard_text). "

  I have greped(grep -r errorpage *) src/ but found nothing to exclude  hardcoded
  error_hard_text.
 
Regards,

-- 
Sergey Shepshelevich
Ulyanovsk State Technical University
NOCa Sysem administrator

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux