From 91275eb478ceb58083426099b6da3f4c7e189f19 Mon Sep 17 00:00:00 2001
From: Daniel Baumann
-This document describes the configuration directives of the redirect handler.
-
-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
-If the argument is a scalar, the value is considered as the URL to where the requests should be redirected.
-
-Following properties are recognized if the argument is a mapping.
-http://example.com/abc.html
will be redirected to https://example.com/abc.html
.
-
-
-url
-status
-301
)
-internal
-YES
or NO
(default); if set to YES
, then the server performs an internal redirect and return the content at the redirected URL
-
RSS
)', <<'EOT');
-hosts:
- "example.com:80":
- paths:
- "/":
- redirect:
- status: 301
- url: "https://example.com/"
- "/rss":
- file.dir: /path/to/rss
-EOT
-?>
-
-? })
-
-? })
--
cgit v1.2.3