瀏覽代碼

pillar exemple for RedirectMatch directive

tags/v0.37.4
emeygret 7 年之前
父節點
當前提交
55c6010bde
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 14 行新增0 行删除
  1. +14
    -0
      pillar.example

+ 14
- 0
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

Loading…
取消
儲存