infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-16511) Simplify Attic Lua output filter setup
Date Wed, 25 Jul 2018 06:33:00 GMT

    [ https://issues.apache.org/jira/browse/INFRA-16511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16555205#comment-16555205
] 

ASF subversion and git services commented on INFRA-16511:
---------------------------------------------------------

Commit a9bb20a4cceb38d61e2491fecd3020d4b60a3179 in infrastructure-puppet's branch refs/heads/deployment
from Gav
[ https://gitbox.apache.org/repos/asf?p=infrastructure-puppet.git;h=a9bb20a ]

Merge pull request #1019 from sebbASF/INFRA-16511

INFRA-16511 Use unqualified host for Attic header

> Simplify Attic Lua output filter setup
> --------------------------------------
>
>                 Key: INFRA-16511
>                 URL: https://issues.apache.org/jira/browse/INFRA-16511
>             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/attic.apache.org/flagged/%{HTTP_HOST}'">
>   AddOutputFilter attic html
> </If>
> This works fine, but needs one directory to be set up for each of the possible FQDNs:
 GHOST.apache.org, GHOST.eu.apache.org, GHOST.us.apache.org
> 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/attic.apache.org/flagged/%{reqenv:HOST_UNQUALIFIED}'">
> It's then only necessary to set up the directory flagged/GHOST



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message