How to customize Squid proxy error page

Customize squid error page.
Go to location
# cd /usr/share/squid/errors/en
# cp ERR_ACCESS_DENIED ERR_ACCESS_DENIED.org

Modify html file accordingly. 
#cat  ERR_ACCESS_DENIED

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>ERROR:</title> <style type="text/css"><!--  %l  body :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; } :lang(he) { direction: rtl; }  --></style> </head><body id=%c> <div id="titles"> <h1>ERROR</h1> <h2>The requested URL could not be retrieved</h2> </div> <hr>  <div id="content"> <p>URL: <a href="%U">%U</a></p>  <blockquote id="error"> <p><b>Access Denied.</b></p> </blockquote>  <p>This website is not belonging to company, if you need access of this website. Please email to IT Administrator. <br>Regards,<br>Shahzad(IT Administrator)<br></div> </body></html>


Đăng nhận xét

Mới hơn Cũ hơn