Re: [squid-users] Just one error page.
On 30/11/2016 7:11 a.m., erdosain9 wrote: > "It sounds like many of your users have already been trained to think > that" > > its exactly like that. If a light bulb break... was the proxy.. if a > chair is broken... was the proxy... so i want for a while at least avoid > this complaints > Then it is already too late. Hiding the proxy wont fix this user behaviour, only make it worse as you can't easily see the real problems to find a workaround or fix. You might be able to re-write the proxy error pages to be clearer about what is causing particular problems though. Look in the errors/templates/ directory installed with your Squid for the page texts that Squid loads and sends out. Amos ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Just one error page.
"It sounds like many of your users have already been trained to think that" its exactly like that. If a light bulb break... was the proxy.. if a chair is broken... was the proxy... so i want for a while at least avoid this complaints Thanks -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Just-one-error-page-tp4680631p4680702.html Sent from the Squid - Users mailing list archive at Nabble.com. ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Just one error page.
On 30/11/2016 5:09 a.m., erdosain9 wrote: > Thanks. > Anyway i have another issue... when, for example, a web have a bad > certificate... then squid show "the error page of bad certificate and no > connect..."... then i have "oh, fucking proxy". and i want to avoid that > kind of error too... so, i stick with just the same page for all error (if i > found some problem then i activate the normal errors page and see...) > Thanks for your help. By hiding the difference between browser, proxy and server errors you are only making the problem worse. The users will end up blaming the proxy for all browser related problems as well. It sounds like many of your users have already been trained to think that. Since server cert rejection is a browser error message. Amos ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Just one error page.
Thanks. Anyway i have another issue... when, for example, a web have a bad certificate... then squid show "the error page of bad certificate and no connect..."... then i have "oh, fucking proxy". and i want to avoid that kind of error too... so, i stick with just the same page for all error (if i found some problem then i activate the normal errors page and see...) Thanks for your help. -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Just-one-error-page-tp4680631p4680698.html Sent from the Squid - Users mailing list archive at Nabble.com. ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Just one error page.
OK so first you need to make sure you know and understand what you define as "The Internet is Down''. How do you recognize that the connection is down? If the proxy is the gateway and it has the interface up or down it would be easy to script it. There are other ways which uses "ping" checks and a marker. The helper will check if the "marker" file is there or not. A daemon will run and will test every 15 seconds if the connection is up or down. If the connection state changes the daemon will delete the mark file for UP state and will create the file for a DOWN state. The squid helper will "stat" or "check" if the file is there for each request it receives and then if the "marker"(flag) file exists which means the connection is down it will redirect the client into a local web server with an error page. A Similar thing runs in cloudflare infrastructure. How are you with scripting? Eliezer Eliezer Croitoru Linux System Administrator Mobile: +972-5-28704261 Email: elie...@ngtech.co.il -Original Message- From: squid-users [mailto:squid-users-boun...@lists.squid-cache.org] On Behalf Of erdosain9 Sent: Friday, November 25, 2016 18:52 To: squid-users@lists.squid-cache.org Subject: Re: [squid-users] Just one error page. Hi Thanks! Can you guide me on this "Use an helper that will check the status of the internet connection. If the Internet is down then redirect to a special error page" ??? -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Just-one-error-page-tp4680631p4680661.html Sent from the Squid - Users mailing list archive at Nabble.com. ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Just one error page.
Hi Thanks! Can you guide me on this "Use an helper that will check the status of the internet connection. If the Internet is down then redirect to a special error page" ??? -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Just-one-error-page-tp4680631p4680661.html Sent from the Squid - Users mailing list archive at Nabble.com. ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Just one error page.
Forgot to attach a link to something I wrote which can help with the sucject. https://github.com/elico/squid-helpers/tree/master/squid_helpers/proxy_hb_check If you need more details let me know and I will help you with this. Eliezer Eliezer Croitoru Linux System Administrator Mobile: +972-5-28704261 Email: elie...@ngtech.co.il -Original Message- From: squid-users [mailto:squid-users-boun...@lists.squid-cache.org] On Behalf Of Eliezer Croitoru Sent: Friday, November 25, 2016 11:24 To: 'erdosain9' ; squid-users@lists.squid-cache.org Subject: Re: [squid-users] Just one error page. I have a suggestion for you! Use an helper that will check the status of the internet connection. If the Internet is down then redirect to a special error page. It's much smarter then replacing the error pages. Eliezer Eliezer Croitoru Linux System Administrator Mobile: +972-5-28704261 Email: elie...@ngtech.co.il -Original Message- From: squid-users [mailto:squid-users-boun...@lists.squid-cache.org] On Behalf Of erdosain9 Sent: Friday, November 25, 2016 00:02 To: squid-users@lists.squid-cache.org Subject: Re: [squid-users] Just one error page. mmm, how i "ist the full list of error pages files and create a symbolic link from the single one to all the other named that are installed" by the way, i can use this with just one ACL? and the "regular errors pages" with another? im doing this, because we are changing a lot of things (we have a broken router "working") and sometimes the internet go down... the people (users) think "Oh... it's the fucking proxy!" because they see error pages that they dont understand. Thanks a lot! -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Just-one-error-page-tp4680631p4680649.html Sent from the Squid - Users mailing list archive at Nabble.com. ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Just one error page.
I have a suggestion for you! Use an helper that will check the status of the internet connection. If the Internet is down then redirect to a special error page. It's much smarter then replacing the error pages. Eliezer Eliezer Croitoru Linux System Administrator Mobile: +972-5-28704261 Email: elie...@ngtech.co.il -Original Message- From: squid-users [mailto:squid-users-boun...@lists.squid-cache.org] On Behalf Of erdosain9 Sent: Friday, November 25, 2016 00:02 To: squid-users@lists.squid-cache.org Subject: Re: [squid-users] Just one error page. mmm, how i "ist the full list of error pages files and create a symbolic link from the single one to all the other named that are installed" by the way, i can use this with just one ACL? and the "regular errors pages" with another? im doing this, because we are changing a lot of things (we have a broken router "working") and sometimes the internet go down... the people (users) think "Oh... it's the fucking proxy!" because they see error pages that they dont understand. Thanks a lot! -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Just-one-error-page-tp4680631p4680649.html Sent from the Squid - Users mailing list archive at Nabble.com. ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Just one error page.
On 24.11.16 14:01, erdosain9 wrote: mmm, how i "ist the full list of error pages files and create a symbolic link from the single one to all the other named that are installed" by the way, i can use this with just one ACL? and the "regular errors pages" with another? im doing this, because we are changing a lot of things (we have a broken router "working") and sometimes the internet go down... the people (users) think "Oh... it's the fucking proxy!" because they see error pages that they dont understand. 1. do you really care what the users think? 2. if you show proxy error message, of course they think it's proxy 3. as noted previously: different errors have different handling, specially when server refuses to provide content, it's useless to show people the same messahe as when "internet is down" -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Spam = (S)tupid (P)eople's (A)dvertising (M)ethod ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Just one error page.
mmm, how i "ist the full list of error pages files and create a symbolic link from the single one to all the other named that are installed" by the way, i can use this with just one ACL? and the "regular errors pages" with another? im doing this, because we are changing a lot of things (we have a broken router "working") and sometimes the internet go down... the people (users) think "Oh... it's the fucking proxy!" because they see error pages that they dont understand. Thanks a lot! -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Just-one-error-page-tp4680631p4680649.html Sent from the Squid - Users mailing list archive at Nabble.com. ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Just one error page.
You can list the full list of error pages files and create a symbolic link from the single one to all the other named that are installed. However it might not be recommended since troubleshooting might not be that easy for you after that. Eliezer Eliezer Croitoru Linux System Administrator Mobile: +972-5-28704261 Email: elie...@ngtech.co.il -Original Message- From: squid-users [mailto:squid-users-boun...@lists.squid-cache.org] On Behalf Of erdosain9 Sent: Wednesday, November 23, 2016 20:10 To: squid-users@lists.squid-cache.org Subject: Re: [squid-users] Just one error page. ok, i have my error page... (just one, like i want). How i tell squid to uses just that for all errors?? and I can use that page for all errors of just one ACL?? thanks -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Just-one-error-page-tp4680631p4680639.html Sent from the Squid - Users mailing list archive at Nabble.com. ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Just one error page.
ok, i have my error page... (just one, like i want). How i tell squid to uses just that for all errors?? and I can use that page for all errors of just one ACL?? thanks -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Just-one-error-page-tp4680631p4680639.html Sent from the Squid - Users mailing list archive at Nabble.com. ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Just one error page.
On 23.11.16 08:27, erdosain9 wrote: Hi, yes i want do this "just want to provide the same error for different codes " and the web page could be the "error pages" from Chrome. you can't provide the error page from chrome - chrome has to provide that one. You can install your own error pages into error_directory... -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Nothing is fool-proof to a talented fool. ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Just one error page.
Hi, yes i want do this "just want to provide the same error for different codes " and the web page could be the "error pages" from Chrome. Thanks -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Just-one-error-page-tp4680631p4680636.html Sent from the Squid - Users mailing list archive at Nabble.com. ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Just one error page.
On 23.11.16 06:10, erdosain9 wrote: I want have just a "error 404" for all "errors" Like this http://www.posicionamientowebysem.com/wp-content/uploads/2013/09/error-404.png or this https://www.techtricksworld.com/wp-content/uploads/2015/12/Error-404.png and no text... they are servers' error pages, not squid's how i can do this?? at server level probably. However you should undestand that different errors require different handling - that's why they are different. you should not play with error codes. If you just want to provide the same error for different codes - well, you can do that, however the paragraph above still applies -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Remember half the people you know are below average. ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users