infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (INFRA-16511) Simplify Attic Lua output filter setup
Date Tue, 12 Jun 2018 17:49:00 GMT


ASF GitHub Bot commented on INFRA-16511:

sebbASF opened a new pull request #1019: INFRA-16511 Use unqualified host for Attic header

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Simplify Attic Lua output filter setup
> --------------------------------------
>                 Key: INFRA-16511
>                 URL:
>             Project: Infrastructure
>          Issue Type: Improvement
>          Components: Attic
>            Reporter: Sebb
>            Priority: Major
>              Labels: pull-request-available
> At present the Attic banners for new ghosts are set up using the following condition:
> <If "-d '/var/www/{HTTP_HOST}'">
>   AddOutputFilter attic html
> </If>
> This works fine, but needs one directory to be set up for each of the possible FQDNs:,,
> The 'SetEnvIf' command can be used to set up a variable containing the unqualified host
name (i.e. GHOST):
> SetEnvIf Host ^([^.]+) HOST_UNQUALIFIED=$1
> this can then be used in the If condition as follows:
> <If "-d '/var/www/{reqenv:HOST_UNQUALIFIED}'">
> It's then only necessary to set up the directory flagged/GHOST

This message was sent by Atlassian JIRA

View raw message