Score:0

Redirect to internal page on squid errors

ca flag

I try to redirect to an internal page when a squid error occurs. In order not to customize squid template by template and that the error messages are different, what I try to do is in each original squid lang error file, change the onload event of the page so that it redirects to the own php script: For example, in the ERR_DNS_FAIL file I added a script tag:

 <script type="text/javascript">function redirect () {window.location.href = "http://ipinterna/proxyerrors/index.php?type=ERR_DNS_FAIL";}</script>

In the body tag call the function:

the problem is that this approach does not work, squid keeps serving the original error page.When inspecting the source code of the generated page, I don't see the modification made.

Michael Hampton avatar
cz flag
In what directory did you save the new file?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.