diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 02:49:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 02:49:40 +0000 |
commit | c96f16e8103783f6b98d9f844ea3a7f2195e4834 (patch) | |
tree | 479bef5e7eb5d4f04ba171931c8b47335734e161 /debian/vendor-h2o/srcdoc/configure/redirect_directives.mt | |
parent | Merging upstream version 1.9.4. (diff) | |
download | dnsdist-debian/1.9.4-1.tar.xz dnsdist-debian/1.9.4-1.zip |
Adding debian version 1.9.4-1.debian/1.9.4-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/vendor-h2o/srcdoc/configure/redirect_directives.mt')
-rw-r--r-- | debian/vendor-h2o/srcdoc/configure/redirect_directives.mt | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/debian/vendor-h2o/srcdoc/configure/redirect_directives.mt b/debian/vendor-h2o/srcdoc/configure/redirect_directives.mt deleted file mode 100644 index 8fbdd95..0000000 --- a/debian/vendor-h2o/srcdoc/configure/redirect_directives.mt +++ /dev/null @@ -1,47 +0,0 @@ -? my $ctx = $main::context; -? $_mt->wrapper_file("wrapper.mt", "Configure", "Redirect Directives")->(sub { - -<p> -This document describes the configuration directives of the redirect handler. -</p> - -<? -$ctx->{directive}->( - name => "redirect", - levels => [ qw(path) ], - desc => q{Redirects the requests to given URL.}, -)->(sub { -?> -<p> -The directive rewrites the URL by replacing the host and path part of the URL at which the directive is used with the given URL. For example, when using the configuration below, requests to <code>http://example.com/abc.html</code> will be redirected to <code>https://example.com/abc.html</code>. -</p> -<p> -If the argument is a scalar, the value is considered as the URL to where the requests should be redirected. -</p> -<p> -Following properties are recognized if the argument is a mapping. -<dl> -<dt><code>url</code> -<dd>URL to redirect to -<dt><code>status</code> -<dd>the three-digit status code to use (e.g. <code>301</code>) -<dt><code>internal</code> -<dd>either <code>YES</code> or <code>NO</code> (default); if set to <code>YES</code>, then the server performs an internal redirect and return the content at the redirected URL -</dl> -</p> -<?= $ctx->{example}->('Redirect all HTTP to HTTPS permanently (except for the files under <code>RSS</code>)', <<'EOT'); -hosts: - "example.com:80": - paths: - "/": - redirect: - status: 301 - url: "https://example.com/" - "/rss": - file.dir: /path/to/rss -EOT -?> - -? }) - -? }) |