> > Amos, > >> Okay. How exactly are you configuring Squid to use it? > > I've created a simple html web-stie running in apache2 in the same server. > I'm using squidguard to block the sites & if someone access > these sites, it redirects the users to this website. Now I want to > display this message (Generated on.....), in this web-page. So that I can > give the squid touch to this web-page & looks more realistic. Ah, okay. Right. Those format codes will only work on internally formatted error pages generated by squid itself. It's possible to add the page as a template in the errors directory and load it through Squid. I thought that was what you were doing when you asked for the formats. For remotely generated pages (deny_info, redirects, etc) you will need some javascript or other dynamic code to create the text where the % codes are. You know already what the final result needs to look like. Amos > > ~~~~~~~~~~~~~~~~~~~ > Thanks & Regards, > Sameer Shinde. > Sr. Customer Support Engineer, > Email:- s2sameer@xxxxxxxxxxx > M:- +91 98204 61580 > http://www.geocities.com/s9sameer > If everyone is thinking alike, then somebody isn't thinking. > > > > > > > ---------------------------------------- >> Date: Wed, 17 Dec 2008 13:07:35 +1300 >> From: squid3@xxxxxxxxxxxxx >> To: s2sameer@xxxxxxxxxxx >> CC: squid-users@xxxxxxxxxxxxxxx >> Subject: Re: time format of error page >> >> Sameer Shinde wrote: >>> Amos, >>> >>> I added up this line in my mywon.html file but it didn't worked. >>> The line format is: "Generated %T by %h (%s)" >>> >>> I wanted to add the code in mywon.html file, so that whenever this page >>> gets opened >>> it will show me the following contents >>>>> "Generated Tue, 16 Dec 2008 09:19:14 GMT by localhost >>>>> (squid/3.0.STABLE1)" >>> >>> >> >> Okay. How exactly are you configuring Squid to use it? >> >> Amos >> >>> >>> >>> >>> ---------------------------------------- >>>> Date: Tue, 16 Dec 2008 22:56:52 +1300 >>>> From: squid3@xxxxxxxxxxxxx >>>> To: s2sameer@xxxxxxxxxxx >>>> CC: squid-users@xxxxxxxxxxxxxxx >>>> Subject: Re: time format of error page >>>> >>>> Sameer Shinde wrote: >>>>> Hi All, >>>>> >>>>> Whenever there is any error or any requested page does not get >>>>> accessed, squid throws >>>>> messages, with with there is last line saying like this, >>>>> >>>>> "Generated Tue, 16 Dec 2008 09:19:14 GMT by localhost >>>>> (squid/3.0.STABLE1)" >>>>> >>>>> Can any one let me know what is the code to generate this line, as I >>>>> want to add this >>>>> in a custmized web-page which shows after restrictions. >>>>> Also If you see, this line shows the time in GMT format, which I want >>>>> to show in local time format. >>>>> How to go about it? >>>>> If you change the log time format, I'm in doubt, whether it will >>>>> change this time or not, as It will >>>>> only chnage time time format in the log, not of this page. >>>>> >>>>> Anyone, Any hints, welcome. >>>> The line format is: "Generated %T by %h (%s)" >>>> >>>> The timestamp %T is an RFC 1123 standard time format. The HTTP RFC >>>> requires it to be international with GMT label. >>>> >>>> For local time use %t which writes a time in common log format. >>>> >>>> Amos >>>> -- >>>> Please be using >>>> Current Stable Squid 2.7.STABLE5 or 3.0.STABLE10 >>>> Current Beta Squid 3.1.0.3 or 3.0.STABLE11-RC1 >>> >>> _________________________________________________________________ >>> You live life online. So we put Windows on the web. >>> http://clk.atdmt.com/MRT/go/127032869/direct/01/ >> >> >> -- >> Please be using >> Current Stable Squid 2.7.STABLE5 or 3.0.STABLE10 >> Current Beta Squid 3.1.0.3 or 3.0.STABLE11-RC1 > > _________________________________________________________________ > Send e-mail faster without improving your typing skills. > http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008