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.
This commit is contained in:
parent
78bd21ad62
commit
b88b437308
@ -78,6 +78,10 @@
|
|||||||
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),
|
||||||
|
@ -284,6 +284,9 @@ apache:
|
|||||||
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…
Reference in New Issue
Block a user