浏览代码

feat(vhosts/standard): add support for ScriptAlias in standard vhost

The standard vhost currently handles a regular Alias configuration
statement, but not the related ScriptAlias.
Add this.
tags/v0.41.0
Andreas Thienemann 4 年前
父节点
当前提交
b88b437308
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. +4
    -0
      apache/vhosts/standard.tmpl
  2. +3
    -0
      pillar.example

+ 4
- 0
apache/vhosts/standard.tmpl 查看文件

@@ -78,6 +78,10 @@
Alias {{ loc }} {{ path }}
{%- endfor %}

{%- for loc, path in site.get('ScriptAlias', {}).items() %}
ScriptAlias {{ loc }} {{ path }}
{%- endfor %}

{%- for path, dir in site.get('Directory', {}).items() -%}
{%- set dvals = {
'Options': dir.get('Options', vals.Directory.Options),

+ 3
- 0
pillar.example 查看文件

@@ -284,6 +284,9 @@ apache:
Alias:
/docs: /usr/share/docs

ScriptAlias:
/cgi-bin/: /var/www/cgi-bin/

Formula_Append: |
Additional config as a
multi-line string here

正在加载...
取消
保存