From 55c6010bde480314aa09ffb2126b75f15aad38ef Mon Sep 17 00:00:00 2001 From: emeygret Date: Wed, 17 Jan 2018 08:36:03 +0100 Subject: [PATCH] pillar exemple for RedirectMatch directive --- pillar.example | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pillar.example b/pillar.example index 185a535..c7652f8 100644 --- a/pillar.example +++ b/pillar.example @@ -86,6 +86,20 @@ apache: Additional config as a multi-line string here + redirectmatch.com: + # Use RedirectMatch Directive https://httpd.apache.org/docs/2.4/fr/mod/mod_alias.html#redirectmatch + # Require module mod_alias + enabled: True + template_file: salt://apache/vhosts/redirect.tmpl + ServerName: www.redirectmatch.com + ServerAlias: www.redirectmatch.com + RedirectMatch: true + RedirectSource: '^/$' + RedirectTarget: '/subdirectory' + DocumentRoot: /var/www/html/ + ErrorLog: ${APACHE_LOG_DIR}/error.log + CustomLog: ${APACHE_LOG_DIR}/access.log + 80-proxyexample.com: template_file: salt://apache/vhosts/redirect.tmpl ServerName: www.proxyexample.com