Browse Source

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 years ago
parent
commit
b88b437308
2 changed files with 7 additions and 0 deletions
  1. +4
    -0
      apache/vhosts/standard.tmpl
  2. +3
    -0
      pillar.example

+ 4
- 0
apache/vhosts/standard.tmpl View File

Alias {{ loc }} {{ path }} Alias {{ loc }} {{ path }}
{%- endfor %} {%- endfor %}


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

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

+ 3
- 0
pillar.example View File

Alias: Alias:
/docs: /usr/share/docs /docs: /usr/share/docs


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

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

Loading…
Cancel
Save