o cleanup default (English) error templates, rename to .html for easier editting. move css to include, which should be imported inline using our scripts.
o add frontend code
o extend model with template option.
This commit is contained in:
Ad Schellevis 2020-06-18 16:44:03 +02:00
parent cc66998387
commit b4212f73cb
48 changed files with 2178 additions and 0 deletions

View File

@ -0,0 +1,93 @@
<?php
/**
* Copyright (C) 2020 Deciso B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
namespace OPNsense\Proxy\Api;
use OPNsense\Base\ApiMutableModelControllerBase;
/**
* Class TemplateController
* @package OPNsense\Proxy
*/
class TemplateController extends ApiMutableModelControllerBase
{
protected static $internalModelName = 'proxy';
protected static $internalModelClass = '\OPNsense\Proxy\Proxy';
/**
* save template
* @return array status
* @throws \Phalcon\Validation\Exception on validation issues
* @throws \ReflectionException when binding to the model class fails
* @throws UserException when denied write access
*/
public function setAction()
{
if ($this->request->isPost() && $this->request->hasPost("content")) {
$this->sessionClose();
$mdl = $this->getModel();
$mdl->error_pages->template = $this->request->getPost("content", "striptags");
$result = $this->validate();
if (empty($result['validations'])) {
// save config if validated correctly
$this->save();
$result = array("result" => "saved");
} else {
$result["result"] = "failed";
}
return $result;
} else {
return array("result" => "failed");
}
}
/**
* reset error_pages template
*/
public function resetAction()
{
if ($this->request->isPost()) {
$mdl = $this->getModel();
$mdl->error_pages->template = null;
$this->save();
return array("result" => "saved");
}
return array("result" => "failed");
}
/**
* retrieve error pages template
*/
public function getAction()
{
$mdl = $this->getModel();
return [
'content' => (string)$mdl->error_pages->template
];
}
}

View File

@ -7,6 +7,16 @@
<type>checkbox</type>
<help>Enable or disable the proxy service.</help>
</field>
<field>
<id>proxy.general.error_pages</id>
<label>User error pages</label>
<type>dropdown</type>
<help>
The proxy error pages can be altered, default layout uses OPNsense content, when Squid is selected
the content for the selected language will be used (standard squid layout), Custom offers the possibility
to upload your own theme content.
</help>
</field>
<field>
<id>proxy.general.icpPort</id>
<label>ICP port</label>

View File

@ -10,6 +10,15 @@
<default>0</default>
<Required>Y</Required>
</enabled>
<error_pages type="OptionField">
<Required>N</Required>
<Default>opnsense</Default>
<BlankDesc>Squid</BlankDesc>
<OptionValues>
<opnsense>OPNsense</opnsense>
<custom>Custom</custom>
</OptionValues>
</error_pages>
<icpPort type="IntegerField">
<MinimumValue>1</MinimumValue>
<MaximumValue>65535</MaximumValue>
@ -735,5 +744,12 @@
</proxies>
</rule>
</pac>
<error_pages>
<template type="TextField">
<Required>N</Required>
<mask>/[0-9a-zA-Z\+\=\/]{20,}/u</mask>
<ValidationMessage>File content should be in (base64 encoded) zip format</ValidationMessage>
</template>
</error_pages>
</items>
</model>

View File

@ -30,6 +30,15 @@
var data_get_map = {'frm_proxy':"/api/proxy/settings/get"};
// show/hide error pages tab when applicable
$("#proxy\\.general\\.error_pages").change(function(e){
if ($(this).val() == 'custom') {
$("#subtab_error_pages").show();
} else {
$("#subtab_error_pages").hide();
}
});
// load initial data
mapDataToFormUI(data_get_map).done(function(){
formatTokenizersUI();
@ -249,6 +258,84 @@
});
/**
* Error page template actions
*/
$("#error_pages_content_filename").click(function(evt) {
$("#error_pages_content_progress").addClass("fa fa-spinner fa-pulse");
$("#error_pages_content_icon").hide();
this.value = null;
});
$("#error_pages_content_filename").change(function(evt) {
if (evt.target.files[0]) {
var reader = new FileReader();
reader.onload = function(readerEvt) {
$("#error_pages_content_name").val(evt.target.files[0].name);
$("#error_pages_content").val(btoa(readerEvt.target.result));
$("#error_pages_content_progress").removeClass("fa fa-spinner fa-pulse");
$("#error_pages_content_icon").show();
};
reader.readAsBinaryString(evt.target.files[0]);
} else {
$("#error_pages_content_progress").removeClass("fa fa-spinner fa-pulse");
$("#error_pages_content_icon").show();
}
});
$("#error_pages_download").click(function(){
ajaxGet("/api/proxy/template/get", {}, function(data, status){
if (data.content) {
let a_tag = $('<a></a>').attr('href','data:application/zip;charset=utf8,' + encodeURIComponent(data.content))
.attr('download','proxy_template.zip').appendTo('body');
a_tag.ready(function() {
if ( window.navigator.msSaveOrOpenBlob && window.Blob ) {
var blob = new Blob( [ output_data ], { type: "application/zip" } );
navigator.msSaveOrOpenBlob( blob, 'proxy_template.zip' );
} else {
a_tag.get(0).click();
}
});
}
});
});
$("#error_pages_upload").click(function(){
if ($("#error_pages_content").val().length > 2) {
ajaxCall("/api/proxy/template/set", {'content': $("#error_pages_content").val()}, function(data,status) {
if (data['error'] !== undefined) {
// error saving
BootstrapDialog.show({
type: BootstrapDialog.TYPE_WARNING,
title: "{{ lang._('Error uploading template') }}",
message: data['error'],
draggable: true
});
} else {
$("#error_pages_content_name").val("{{ lang._('saved') }}");
}
});
}
});
$("#error_pages_reset").click(function(){
BootstrapDialog.show({
title: "{{ lang._('Reset custom template') }}",
message: "{{ lang._('Are you sure you want to flush the configured template (back to defaults)?') }}",
type: BootstrapDialog.TYPE_INFO,
draggable: true,
buttons: [{
label: '<i class="fa fa-check" aria-hidden="true"></i>',
action: function(sender){
ajaxCall("/api/proxy/template/reset", {});
sender.close();
}
},{
label: '<i class="fa fa-close" aria-hidden="true"></i>',
action: function(sender){
sender.close();
}
}]
});
});
// update history on tab state and implement navigation
if(window.location.hash != "") {
$('a[href="' + window.location.hash + '"]').click()
@ -283,6 +370,7 @@
</li>
<li><a data-toggle="tab" href="#remote_acls"><b>{{ lang._('Remote Access Control Lists') }}</b></a></li>
<li><a data-toggle="tab" href="#support"><b>{{ lang._('Support') }}</b></a></li>
<li><a data-toggle="tab" id="subtab_error_pages" style="display:none" href="#error_pages"><b>{{ lang._('Error Pages') }}</b></a></li>
</ul>
<div class="content-box tab-content">
@ -461,6 +549,56 @@
</tbody>
</table>
</div>
<div id="error_pages" class="tab-pane fade">
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>{{ lang._('Action')}}</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<button class="btn btn-default" style="padding-bottom: 7px;" id="error_pages_download" title="{{ lang._('Download')}}" data-toggle="tooltip">
<i class="fa fa-fw fa-download"></i>
</button>
</td>
</tr>
<tr>
<td>
<textarea id="error_pages_content" class="hidden form-control"></textarea>
<div class="input-group">
<label class="input-group-btn">
<label class="btn btn-default" style="padding-bottom: 7px;">
<i class="fa fa-fw fa-folder-o" id="error_pages_content_icon"></i>
<i id="error_pages_content_progress"></i>
<input type="file" id="error_pages_content_filename" style="display: none;">
</label>
</label>
<input type="text" class="form-control" readonly="" for="error_pages_content" id="error_pages_content_name">
<button class="btn btn-default" id="error_pages_upload" style="padding-bottom: 7px;" title="{{ lang._('Upload selected file')}}" data-toggle="tooltip">
<i class="fa fa-fw fa-upload"></i>
</button>
</div>
</td>
</tr>
<tr>
<td>
<button class="btn btn-default" style="padding-bottom: 7px;" id="error_pages_reset" title="{{ lang._('Reset')}}" data-toggle="tooltip">
<i class="fa fa-fw fa-remove"></i>
</button>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>
{{ lang._('Download and upload custom error pages, if no (new) files are provided our defaults are used.')}}
</td>
</tr>
</tfoot>
</table>
</div>
</div>
{{ partial("layout_partials/base_dialog",['fields':formDialogEditBlacklist,'id':'DialogEditBlacklist','label':lang._('Edit blacklist')])}}

View File

@ -0,0 +1,35 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Access Denied.</b></p>
</blockquote>
<p>Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,36 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Time Quota Exceeded.</b></p>
</blockquote>
<p>This proxy limits your time online with a quota. Your time budget is now empty but will be refilled when the configured time period starts again.</p>
<p>These limits have been established by the Internet Service Provider who operates this cache. Please contact them directly if you feel this is an error.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,50 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Web Browser Configuration</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</head><body id="%c">
<div id="titles">
<h1>ERROR</h1>
<h2>Web Browser Configuration</h2>
</div>
<hr>
<div id="content"> <blockquote id="error">
<p>Your Web Browser configuration needs to be corrected to use this network.</p>
</blockquote>
<p>How to find these settings in your browser:</p>
<div id="firefox"> For Firefox browsers go to: <ul>
<li>Tools -> Options -> Advanced -> Network -> Connection Settings</li>
<li>In the HTTP proxy box type the proxy name %h and port %b.</li>
</ul>
</div>
<div id="microsoft"> For Internet Explorer browsers go to: <ul>
<li>Tools -> Internet Options -> Connection -> LAN Settings ->Proxy</li>
<li>In the HTTP proxy box type the proxy name %h and port %b.</li>
</ul>
</div>
<div id="opera"> For Opera browsers go to: <ul>
<li>Tools -> Preferences -> Advanced -> Network -> Proxy Servers</li>
<li>In the HTTP proxy box type the proxy name %h and port %b.</li>
</ul>
</div>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,50 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Web Browser Configuration</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</head><body id="%c">
<div id="titles">
<h1>ERROR</h1>
<h2>Web Browser Configuration</h2>
</div>
<hr>
<div id="content"> <blockquote id="error">
<p>Your Web Browser configuration needs to be corrected to use this network.</p>
</blockquote>
<p>How to find these settings in your browser:</p>
<div id="firefox"> For Firefox browsers go to: <ul>
<li>Tools -> Options -> Advanced -> Network -> Connection Settings</li>
<li>Select Auto-detect proxy settings for this network</li>
</ul>
</div>
<div id="microsoft"> For Internet Explorer browsers go to: <ul>
<li>Tools -> Internet Options -> Connection -> LAN Settings ->Proxy</li>
<li>Select Automatically detect settings</li>
</ul>
</div>
<div id="opera"> For Opera browsers go to: <ul>
<li>Tools -> Preferences -> Advanced -> Network -> Proxy Servers</li>
<li>Select Use Automatic proxy configuration</li>
</ul>
</div>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,36 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: Cache Access Denied</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</head><body id="%c">
<div id="titles">
<h1>ERROR</h1>
<h2>Cache Access Denied.</h2>
</div>
<hr>
<div id="content">
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Cache Access Denied.</b></p>
</blockquote>
<p>Sorry, you are not currently allowed to request %U from this cache until you have authenticated yourself.</p>
<p>Please contact the <a href="mailto:%w%W">cache administrator</a> if you have difficulties authenticating yourself.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,36 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: Cache Manager Access Denied</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</head><body id="%c">
<div id="titles">
<h1>ERROR</h1>
<h2>Cache Manager Access Denied.</h2>
</div>
<hr>
<div id="content">
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Cache Manager Access Denied.</b></p>
</blockquote>
<p>Sorry, you are not currently allowed to request %U from this cache manager until you have authenticated yourself.</p>
<p>Please contact the <a href="mailto:%w%W">cache administrator</a> if you have difficulties authenticating yourself or, if you <em>are</em> the administrator, read Squid documentation on cache manager interface and check cache log for more detailed error messages.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,43 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Unable to forward this request at this time.</b></p>
</blockquote>
<p>This request could not be forwarded to the origin server or to any parent caches.</p>
<p>Some possible problems are:</p>
<ul>
<li id="network-down">An Internet connection needed to access this domains origin servers may be down.</li>
<li id="no-peer">All configured parent caches may be currently unreachable.</li>
<li id="permission-denied">The administrator may not allow this cache to make direct connections to origin servers.</li>
</ul>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,41 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="data">
<pre>URI Host Conflict</pre>
</blockquote>
<p>This means the domain name you are trying to access apparently no longer exists on the machine you are requesting it from.</p>
<p>Some possible problems are:</p>
<ul>
<li>The domain may have moved very recently. Trying again will resolve that.</li>
<li>The website may require you to use a local country-based version. Using your ISP provided DNS server(s) should resolve that.</li>
</ul>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,38 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Connection to %I failed.</b></p>
</blockquote>
<p id="sysmsg">The system returned: <i>%E</i></p>
<p>The remote host or network may be down. Please try the request again.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,39 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Directory: %U</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</head><body id="%c">
<div id="titles">
<h2>Directory: <a href="%U">%U</a>/</h2>
</div>
<hr>
<div id="content">
<h4>Directory Content:</h4>
<blockquote id="data">
<pre id="dirmsg">%z</pre>
</blockquote>
<table id="dirlisting" summary="Directory Listing">
<tr>
<th><a href="../"><img border="0" src="/squid-internal-static/icons/silk/arrow_up.png" alt=""></a></th>
<th nowrap="nowrap"><a href="../">Parent Directory</a> (<a href="/">Root Directory</a>)</th>
</tr>
%g
</table>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,40 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Unable to determine IP address from host name <q>%H</q></b></p>
</blockquote>
<p>The DNS server returned:</p>
<blockquote id="data">
<pre>%z</pre>
</blockquote>
<p>This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,40 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>ESI Processing failed.</b></p>
</blockquote>
<p>The ESI processor returned:</p>
<blockquote id="data">
<pre>%Z</pre>
</blockquote>
<p>This means that the surrogate was not able to process the ESI template. Please report this error to the webmaster.</p>
<p>Your webmaster is <a href="mailto:%w">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,36 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Forwarding Denied.</b></p>
</blockquote>
<p>This cache will not forward your request because it is trying to enforce a sibling relationship. Perhaps the client at %i is a cache which has been misconfigured.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,36 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>FTP is Disabled</b></p>
</blockquote>
<p>This cache does not support FTP.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,40 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>An FTP protocol error occurred while trying to retrieve the URL: <a href="%U">%U</a></p>
<p>Squid sent the following FTP command:</p>
<blockquote id="data">
<pre>%f</pre>
</blockquote>
<p>The server responded with:</p>
<blockquote id="error">
<pre>%F</pre>
<pre>%g</pre>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,40 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>An FTP authentication failure occurred while trying to retrieve the URL: <a href="%U">%U</a></p>
<p>Squid sent the following FTP command:</p>
<blockquote id="data">
<pre>%f</pre>
</blockquote>
<p>The server responded with:</p>
<blockquote id="sysmsg">
<pre>%F</pre>
<pre>%g</pre>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,42 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following URL could not be retrieved: <a href="%U">%U</a></p>
<p>Squid sent the following FTP command:</p>
<blockquote id="data">
<pre>%f</pre>
</blockquote>
<p>The server responded with:</p>
<blockquote id="sysmsg">
<pre>%F</pre>
<pre>%g</pre>
</blockquote>
<p>This might be caused by an FTP URL with an absolute path (which does not comply with RFC 1738). If this is the cause, then the file can be found at <a href="%B">%B</a>.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,24 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>FTP PUT Successful.</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</head><body id="%c">
<div id="titles">
<h1 id="ftpsuccess">Operation successful</h1>
<h2>File created</h2>
</div>
<hr>
<br>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,41 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: FTP upload failed</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</head><body id="%c">
<div id="titles">
<h1>ERROR</h1>
<h2>FTP PUT upload failed</h2>
</div>
<hr>
<div id="content">
<p>An FTP protocol error occurred while trying to retrieve the URL: <a href="%U">%U</a></p>
<p>Squid sent the following FTP command:</p>
<blockquote id="data">
<pre>%f</pre>
</blockquote>
<p>The server responded with:</p>
<blockquote id="sysmsg">
<pre>%F</pre>
</blockquote>
<p>This means that the FTP server may not have permission or space to store the file. Check the path, permissions, diskspace and try again.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,24 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>FTP PUT Successful.</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</head><body id="%c">
<div id="titles">
<h1 id="ftpsuccess">Operation successful</h1>
<h2>File updated</h2>
</div>
<hr>
<br>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,41 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The FTP server was too busy to retrieve the URL: <a href="%U">%U</a></p>
<p>Squid sent the following FTP command:</p>
<blockquote id="data">
<pre>%f</pre>
</blockquote>
<p>The server responded with:</p>
<blockquote id="sysmsg">
<pre>%F</pre>
<pre>%g</pre>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,37 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Gateway Proxy Failure</b></p>
</blockquote>
<p>A non-recoverable internal failure or configuration problem prevents this request from being completed.</p>
<p>This may be due to limits established by the Internet Service Provider who operates this cache. Please contact them directly for more information.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,42 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>ICAP protocol error.</b></p>
</blockquote>
<p id="sysmsg">The system returned: <i>%E</i></p>
<p>This means that some aspect of the ICAP communication failed.</p>
<p>Some possible problems are:</p>
<ul>
<li><p>The ICAP server is not reachable.</p></li>
<li><p>An Illegal response was received from the ICAP server.</p></li>
</ul>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,50 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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><b>Invalid Request</b> error was encountered while trying to process the request:</p>
<blockquote id="data">
<pre>%R</pre>
</blockquote>
<p>Some possible problems are:</p>
<ul>
<li id="missing-method"><p>Missing or unknown request method.</p></li>
<li id="missing-url"><p>Missing URL.</p></li>
<li id="missing-protocol"><p>Missing HTTP Identifier (HTTP/1.0).</p></li>
<li><p>Request is too large.</p></li>
<li><p>Content-Length missing for POST or PUT requests.</p></li>
<li><p>Illegal character in hostname; underscores are not allowed.</p></li>
<li><p>HTTP/1.1 <q>Expect:</q> feature is being asked from an HTTP/1.0 software.</p></li>
</ul>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<script language="javascript">
if ('%M' != '[unknown method]') document.getElementById('missing-method').style.display = 'none';
if ('%u' != '[no URL]') document.getElementById('missing-url').style.display = 'none';
if ('%P' != '[unknown protocol]') document.getElementById('missing-protocol').style.display = 'none';
</script>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,37 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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><b>Invalid Response</b> error was encountered while trying to process the request:</p>
<blockquote id="data">
<pre>%R</pre>
</blockquote>
<p>The HTTP Response message received from the contacted server could not be understood or was otherwise malformed. Please contact the site operator.</p>
<p>Your cache administrator may be able to provide you with more details about the exact nature of the problem if needed.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,43 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Invalid URL</b></p>
</blockquote>
<p>Some aspect of the requested URL is incorrect.</p>
<p>Some possible problems are:</p>
<ul>
<li><p>Missing or incorrect access protocol (should be <q>http://</q> or similar)</p></li>
<li><p>Missing hostname</p></li>
<li><p>Illegal double-escape in the URL-Path</p></li>
<li><p>Illegal character in hostname; underscores are not allowed.</p></li>
</ul>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,35 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Connection Lifetime Expired</b></p>
</blockquote>
<p>Squid has terminated the request because it has exceeded the maximum connection lifetime.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,35 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>No Wais Relay</b></p>
</blockquote>
<p>There is no WAIS Relay host defined for this Cache! Yell at the administrator.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,35 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Valid document was not found in the cache and <q>only-if-cached</q> directive was specified.</b></p>
</blockquote>
<p>You have issued a request with a <q>only-if-cached</q> cache control directive. The document was not found in the cache, <em>or</em> it required revalidation prohibited by the <q>only-if-cached</q> directive.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,37 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Precondition Failed.</b></p>
</blockquote>
<p>This means:</p>
<blockquote>
<p>At least one precondition specified by the HTTP client in the request header has failed.</p>
</blockquote>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,35 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Unsupported Protocol</b></p>
</blockquote>
<p>Squid does not support some access protocols. For example, the SSH protocol is currently not supported.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,37 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Read Error</b></p>
</blockquote>
<p id="sysmsg">The system returned: <i>%E</i></p>
<p>An error condition occurred while reading data from the network. Please retry your request.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,37 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Read Timeout</b></p>
</blockquote>
<p id="sysmsg">The system returned: <i>%E</i></p>
<p>A Timeout occurred while waiting to read data from the network. The network or server may be down or congested. Please retry your request.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,43 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Failed to establish a secure connection to %I</b></p>
</blockquote>
<div id="sysmsg">
<p>The system returned:</p>
<blockquote id="data">
<pre>%E (TLS code: %x)</pre>
<p>%D</p>
</blockquote>
</div>
<p>This proxy and the remote host failed to negotiate a mutually acceptable security settings for handling your request. It is possible that the remote host does not support secure connections, or the proxy is not satisfied with the host security credentials.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,31 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<p>This cache is in the process of shutting down and can not service your request at this time. Please retry your request again soon.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,37 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Socket Failure</b></p>
</blockquote>
<p id="sysmsg">The system returned: <i>%E</i></p>
<p>Squid is unable to create a TCP socket, presumably due to excessive load. Please retry your request.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,37 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>The request or reply is too large.</b></p>
</blockquote>
<p>If you are making a POST or PUT request, then the item you are trying to upload is too large.</p>
<p>If you are making a GET request, then the item you are trying to download is too large.</p>
<p>These limits have been established by the Internet Service Provider who operates this cache. Please contact them directly if you feel this is an error.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,35 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</head><body id="%c">
<div id="titles">
<h1>ERROR</h1>
<h2>Unsupported HTTP version</h2>
</div>
<hr>
<div id="content">
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Unsupported HTTP version</b></p>
</blockquote>
<p>This Squid does not accept the HTTP version you are attempting to use.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,35 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Unsupported Request Method and Protocol</b></p>
</blockquote>
<p>Squid does not support all request methods for all access protocols. For example, you can not POST a Gopher request.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,35 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URN could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</head><body id="%c">
<div id="titles">
<h1>ERROR</h1>
<h2>A URL for the requested URN could not be retrieved</h2>
</div>
<hr>
<div id="content">
<p>The following error was encountered while trying to retrieve the URN: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Cannot Resolve URN</b></p>
</blockquote>
<p>Hey, don't expect too much from URNs on %T :)</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,37 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Write Error</b></p>
</blockquote>
<p id="sysmsg">The system returned: <i>%E</i></p>
<p>An error condition occurred while writing to the network. Please retry your request.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,35 @@
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<!--EMBED:start-->
<!-- leave this block as is, our parser will convert links to inline content -->
<link rel="stylesheet" type="text/css" href="errorpage.css">
<!--EMBED:end -->
</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>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
<blockquote id="error">
<p><b>Zero Sized Reply</b></p>
</blockquote>
<p>Squid did not receive any data for this request.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated %T by %h (%s)</p>
<!-- %c -->
</div>
</body></html>

View File

@ -0,0 +1,223 @@
name: SQUID_X509_V_ERR_INFINITE_VALIDATION
detail: "%ssl_error_descr: %ssl_subject"
descr: "Cert validation infinite loop detected"
name: SQUID_ERR_SSL_HANDSHAKE
detail: "%ssl_error_descr: %ssl_lib_error"
descr: "Handshake with SSL server failed"
name: SQUID_X509_V_ERR_DOMAIN_MISMATCH
detail: "%ssl_error_descr: %ssl_subject"
descr: "Certificate does not match domainname"
name: X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT
detail: "SSL Certficate error: certificate issuer (CA) not known: %ssl_ca_name"
descr: "Unable to get issuer certificate"
name: X509_V_ERR_UNABLE_TO_GET_CRL
detail: "%ssl_error_descr: %ssl_subject"
descr: "Unable to get certificate CRL"
name: X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE
detail: "%ssl_error_descr: %ssl_subject"
descr: "Unable to decrypt certificate's signature"
name: X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE
detail: "%ssl_error_descr: %ssl_subject"
descr: "Unable to decrypt CRL's signature"
name: X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY
detail: "Unable to decode issuer (CA) public key: %ssl_ca_name"
descr: "Unable to decode issuer public key"
name: X509_V_ERR_CERT_SIGNATURE_FAILURE
detail: "%ssl_error_descr: %ssl_subject"
descr: "Certificate signature failure"
name: X509_V_ERR_CRL_SIGNATURE_FAILURE
detail: "%ssl_error_descr: %ssl_subject"
descr: "CRL signature failure"
name: X509_V_ERR_CERT_NOT_YET_VALID
detail: "SSL Certficate is not valid before: %ssl_notbefore"
descr: "Certificate is not yet valid"
name: X509_V_ERR_CERT_HAS_EXPIRED
detail: "SSL Certificate expired on: %ssl_notafter"
descr: "Certificate has expired"
name: X509_V_ERR_CRL_NOT_YET_VALID
detail: "%ssl_error_descr: %ssl_subject"
descr: "CRL is not yet valid"
name: X509_V_ERR_CRL_HAS_EXPIRED
detail: "%ssl_error_descr: %ssl_subject"
descr: "CRL has expired"
name: X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD
detail: "SSL Certificate has invalid start date (the 'not before' field): %ssl_subject"
descr: "Format error in certificate's notBefore field"
name: X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD
detail: "SSL Certificate has invalid expiration date (the 'not after' field): %ssl_subject"
descr: "Format error in certificate's notAfter field"
name: X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD
detail: "%ssl_error_descr: %ssl_subject"
descr: "Format error in CRL's lastUpdate field"
name: X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD
detail: "%ssl_error_descr: %ssl_subject"
descr: "Format error in CRL's nextUpdate field"
name: X509_V_ERR_OUT_OF_MEM
detail: "%ssl_error_descr"
descr: "Out of memory"
name: X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT
detail: "Self-signed SSL Certificate: %ssl_subject"
descr: "Self signed certificate"
name: X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN
detail: "Self-signed SSL Certificate in chain: %ssl_subject"
descr: "Self signed certificate in certificate chain"
name: X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY
detail: "SSL Certficate error: certificate issuer (CA) not known: %ssl_ca_name"
descr: "Unable to get local issuer certificate"
name: X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE
detail: "%ssl_error_descr: %ssl_subject"
descr: "Unable to verify the first certificate"
name: X509_V_ERR_CERT_CHAIN_TOO_LONG
detail: "%ssl_error_descr: %ssl_subject"
descr: "Certificate chain too long"
name: X509_V_ERR_CERT_REVOKED
detail: "%ssl_error_descr: %ssl_subject"
descr: "Certificate revoked"
name: X509_V_ERR_INVALID_CA
detail: "%ssl_error_descr: %ssl_ca_name"
descr: "Invalid CA certificate"
name: X509_V_ERR_PATH_LENGTH_EXCEEDED
detail: "%ssl_error_descr: %ssl_subject"
descr: "Path length constraint exceeded"
name: X509_V_ERR_INVALID_PURPOSE
detail: "%ssl_error_descr: %ssl_subject"
descr: "Unsupported certificate purpose"
name: X509_V_ERR_CERT_UNTRUSTED
detail: "%ssl_error_descr: %ssl_subject"
descr: "Certificate not trusted"
name: X509_V_ERR_CERT_REJECTED
detail: "%ssl_error_descr: %ssl_subject"
descr: "Certificate rejected"
name: X509_V_ERR_SUBJECT_ISSUER_MISMATCH
detail: "%ssl_error_descr: %ssl_ca_name"
descr: "Subject issuer mismatch"
name: X509_V_ERR_AKID_SKID_MISMATCH
detail: "%ssl_error_descr: %ssl_subject"
descr: "Authority and subject key identifier mismatch"
name: X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH
detail: "%ssl_error_descr: %ssl_ca_name"
descr: "Authority and issuer serial number mismatch"
name: X509_V_ERR_KEYUSAGE_NO_CERTSIGN
detail: "%ssl_error_descr: %ssl_subject"
descr: "Key usage does not include certificate signing"
name: X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER
detail: "%ssl_error_descr: %ssl_subject"
descr: "unable to get CRL issuer certificate"
name: X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION
detail: "%ssl_error_descr: %ssl_subject"
descr: "unhandled critical extension"
name: X509_V_ERR_KEYUSAGE_NO_CRL_SIGN
detail: "%ssl_error_descr: %ssl_subject"
descr: "key usage does not include CRL signing"
name: X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION
detail: "%ssl_error_descr: %ssl_subject"
descr: "unhandled critical CRL extension"
name: X509_V_ERR_INVALID_NON_CA
detail: "%ssl_error_descr: %ssl_subject"
descr: "invalid non-CA certificate (has CA markings)"
name: X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED
detail: "%ssl_error_descr: %ssl_subject"
descr: "proxy path length constraint exceeded"
name: X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE
detail: "%ssl_error_descr: %ssl_subject"
descr: "key usage does not include digital signature"
name: X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED
detail: "%ssl_error_descr: %ssl_subject"
descr: "proxy certificates not allowed, please set the appropriate flag"
name: X509_V_ERR_INVALID_EXTENSION
detail: "%ssl_error_descr: %ssl_subject"
descr: "invalid or inconsistent certificate extension"
name: X509_V_ERR_INVALID_POLICY_EXTENSION
detail: "%ssl_error_descr: %ssl_subject"
descr: "invalid or inconsistent certificate policy extension"
name: X509_V_ERR_NO_EXPLICIT_POLICY
detail: "%ssl_error_descr: %ssl_subject"
descr: "no explicit policy"
name: X509_V_ERR_DIFFERENT_CRL_SCOPE
detail: "%ssl_error_descr: %ssl_subject"
descr: "Different CRL scope"
name: X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE
detail: "%ssl_error_descr: %ssl_subject"
descr: "Unsupported extension feature"
name: X509_V_ERR_UNNESTED_RESOURCE
detail: "%ssl_error_descr: %ssl_subject"
descr: "RFC 3779 resource not subset of parent's resources"
name: X509_V_ERR_PERMITTED_VIOLATION
detail: "%ssl_error_descr: %ssl_subject"
descr: "permitted subtree violation"
name: X509_V_ERR_EXCLUDED_VIOLATION
detail: "%ssl_error_descr: %ssl_subject"
descr: "excluded subtree violation"
name: X509_V_ERR_SUBTREE_MINMAX
detail: "%ssl_error_descr: %ssl_subject"
descr: "name constraints minimum and maximum not supported"
name: X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE
detail: "%ssl_error_descr: %ssl_subject"
descr: "unsupported name constraint type"
name: X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX
detail: "%ssl_error_descr: %ssl_subject"
descr: "unsupported or invalid name constraint syntax"
name: X509_V_ERR_UNSUPPORTED_NAME_SYNTAX
detail: "%ssl_error_descr: %ssl_subject"
descr: "unsupported or invalid name syntax"
name: X509_V_ERR_CRL_PATH_VALIDATION_ERROR
detail: "%ssl_error_descr: %ssl_subject"
descr: "CRL path validation error"
name: X509_V_ERR_APPLICATION_VERIFICATION
detail: "%ssl_error_descr: %ssl_subject"
descr: "Application verification failure"

File diff suppressed because one or more lines are too long