Re: Proposed httpd tlp config changes for Attic redirects

2018-04-29 Thread sebb
On 29 April 2018 at 09:43, sebb  wrote:
> On 29 April 2018 at 08:56, Henk P. Penning  wrote:
>> On Sun, 29 Apr 2018, sebb wrote:
>>
>>> Date: Sun, 29 Apr 2018 09:34:47 +0200
>>> From: sebb 
>>> To: general@attic.apache.org
>>> Subject: Re: Proposed httpd tlp config changes for Attic redirects
>>
>>
>>>>   Why? The 'new' site should have this, of course :
>>>>
>>>> docs/flagged/oltu.apache.org/oltu.apache.org
>>>
>>>
>>> I was assuming that would be dropped.
>>
>>
>>   Yes, eventually.
>>   The point is that fixing the httpd rules /can/ be done later.
>>   Having the new site compatible (in this respect) with the old,
>>   avoids more mucking around with the 'old' site.
>
> Equally, once the new rules are defined, it will be possible to test
> them using whatever site is active.

I've just realised that oltu.us.apache.org exists but does not match
the banner conditions.

So adding flags/oltu.us.apache.org/banners would provide a simple test
to show the new rules worked.

>>   "docs/flagged/oltu.apache.org/oltu.apache.org" is just one more
>>   static file that has to be preserved going from 'old' to 'new'.
>
> OK
>
>>   As in "attic/site-lua/static/".
>>
>>>>   -- that's enough to get oltu bannered
>>>>   -- atm, the /dist/ redirects are triggered by
>>>>  the presence of "projects/TLP.html"
>>>>  and that is unchanged (regards TLP's).
>>
>>
>>   Regards,
>>
>>   HPP
>>
>>    _
>> Henk P. Penning, ICT-beta R Uithof MG-403_/ \_
>> Faculty of Science, Utrecht UniversityT +31 30 253 4106 / \_/ \
>> Leuvenlaan 4, 3584CE Utrecht, NL  F +31 30 253 4553 \_/ \_/
>> http://www.staff.science.uu.nl/~penni101/ M penn...@uu.nl \_/


Re: Proposed httpd tlp config changes for Attic redirects

2018-04-29 Thread sebb
On 29 April 2018 at 08:56, Henk P. Penning  wrote:
> On Sun, 29 Apr 2018, sebb wrote:
>
>> Date: Sun, 29 Apr 2018 09:34:47 +0200
>> From: sebb 
>> To: general@attic.apache.org
>> Subject: Re: Proposed httpd tlp config changes for Attic redirects
>
>
>>>   Why? The 'new' site should have this, of course :
>>>
>>> docs/flagged/oltu.apache.org/oltu.apache.org
>>
>>
>> I was assuming that would be dropped.
>
>
>   Yes, eventually.
>   The point is that fixing the httpd rules /can/ be done later.
>   Having the new site compatible (in this respect) with the old,
>   avoids more mucking around with the 'old' site.

Equally, once the new rules are defined, it will be possible to test
them using whatever site is active.

>   "docs/flagged/oltu.apache.org/oltu.apache.org" is just one more
>   static file that has to be preserved going from 'old' to 'new'.

OK

>   As in "attic/site-lua/static/".
>
>>>   -- that's enough to get oltu bannered
>>>   -- atm, the /dist/ redirects are triggered by
>>>  the presence of "projects/TLP.html"
>>>  and that is unchanged (regards TLP's).
>
>
>   Regards,
>
>   HPP
>
>    _
> Henk P. Penning, ICT-beta R Uithof MG-403_/ \_
> Faculty of Science, Utrecht UniversityT +31 30 253 4106 / \_/ \
> Leuvenlaan 4, 3584CE Utrecht, NL  F +31 30 253 4553 \_/ \_/
> http://www.staff.science.uu.nl/~penni101/ M penn...@uu.nl \_/


Re: Proposed httpd tlp config changes for Attic redirects

2018-04-29 Thread Henk P. Penning

On Sun, 29 Apr 2018, sebb wrote:


Date: Sun, 29 Apr 2018 09:34:47 +0200
From: sebb 
To: general@attic.apache.org
Subject: Re: Proposed httpd tlp config changes for Attic redirects



  Why? The 'new' site should have this, of course :

docs/flagged/oltu.apache.org/oltu.apache.org


I was assuming that would be dropped.


  Yes, eventually.
  The point is that fixing the httpd rules /can/ be done later.
  Having the new site compatible (in this respect) with the old,
  avoids more mucking around with the 'old' site.

  "docs/flagged/oltu.apache.org/oltu.apache.org" is just one more
  static file that has to be preserved going from 'old' to 'new'.
  As in "attic/site-lua/static/".


  -- that's enough to get oltu bannered
  -- atm, the /dist/ redirects are triggered by
 the presence of "projects/TLP.html"
 and that is unchanged (regards TLP's).


  Regards,

  HPP

   _
Henk P. Penning, ICT-beta R Uithof MG-403_/ \_
Faculty of Science, Utrecht UniversityT +31 30 253 4106 / \_/ \
Leuvenlaan 4, 3584CE Utrecht, NL  F +31 30 253 4553 \_/ \_/
http://www.staff.science.uu.nl/~penni101/ M penn...@uu.nl \_/


Re: Proposed httpd tlp config changes for Attic redirects

2018-04-29 Thread sebb
On 29 April 2018 at 08:27, Henk P. Penning  wrote:
> On Sun, 29 Apr 2018, sebb wrote:
>
>> Date: Sun, 29 Apr 2018 09:02:20 +0200
>> From: sebb 
>> To: general@attic.apache.org
>> Subject: Re: Proposed httpd tlp config changes for Attic redirects
>>
>> On 29 April 2018 at 06:50, Henk P. Penning  wrote:
>>>
>>> On Sat, 28 Apr 2018, sebb wrote:
>
>
>>>   I think we should stop 'fixing' the 'old' site and move
>>>   to a new site.
>>
>>
>> The HTTPD changes have to be in place *before* any move.
>
>
>   Why? The 'new' site should have this, of course :
>
> docs/flagged/oltu.apache.org/oltu.apache.org

I was assuming that would be dropped.

>   -- that's enough to get oltu bannered
>   -- atm, the /dist/ redirects are triggered by
>  the presence of "projects/TLP.html"
>  and that is unchanged (regards TLP's).
>
>   Am I missing something here ?
>
>   Regards,
>
>
>   HPP
>
>    _
> Henk P. Penning, ICT-beta R Uithof MG-403_/ \_
> Faculty of Science, Utrecht UniversityT +31 30 253 4106 / \_/ \
> Leuvenlaan 4, 3584CE Utrecht, NL  F +31 30 253 4553 \_/ \_/
> http://www.staff.science.uu.nl/~penni101/ M penn...@uu.nl \_/


Re: Proposed httpd tlp config changes for Attic redirects

2018-04-29 Thread Henk P. Penning

On Sun, 29 Apr 2018, sebb wrote:


Date: Sun, 29 Apr 2018 09:02:20 +0200
From: sebb 
To: general@attic.apache.org
Subject: Re: Proposed httpd tlp config changes for Attic redirects

On 29 April 2018 at 06:50, Henk P. Penning  wrote:

On Sat, 28 Apr 2018, sebb wrote:



  I think we should stop 'fixing' the 'old' site and move
  to a new site.


The HTTPD changes have to be in place *before* any move.


  Why? The 'new' site should have this, of course :

docs/flagged/oltu.apache.org/oltu.apache.org

  -- that's enough to get oltu bannered
  -- atm, the /dist/ redirects are triggered by
 the presence of "projects/TLP.html"
 and that is unchanged (regards TLP's).

  Am I missing something here ?

  Regards,

  HPP

   _
Henk P. Penning, ICT-beta R Uithof MG-403_/ \_
Faculty of Science, Utrecht UniversityT +31 30 253 4106 / \_/ \
Leuvenlaan 4, 3584CE Utrecht, NL  F +31 30 253 4553 \_/ \_/
http://www.staff.science.uu.nl/~penni101/ M penn...@uu.nl \_/


Re: Proposed httpd tlp config changes for Attic redirects

2018-04-29 Thread sebb
On 29 April 2018 at 06:50, Henk P. Penning  wrote:
> On Sat, 28 Apr 2018, sebb wrote:
>
>> Date: Sat, 28 Apr 2018 23:00:32 +0200
>> From: sebb 
>> To: general@attic.apache.org
>> Subject: Proposed httpd tlp config changes for Attic redirects
>>
>> I've created an updated copy of the TLP httpd configs for the proposed
>> flags/banners layout:
>>
>>
>> https://github.com/apache/infrastructure-puppet/compare/deployment...sebbASF:attic-flags
>>
>> The rules are in addition to the existing rules.
>> This makes it easier to do a changeover.
>> Once the new layout is in place, the old rules can be dropped.
>>
>> @henkp: do the rules look OK to you?
>
>
>   'banners' is a file ; so, use '-f' instead of '-d' :
>
>   - 
>   + 

Good catch.
Fixed.

>> If so, I can create a pull request.
>
>
>   I think we should stop 'fixing' the 'old' site and move
>   to a new site.

The HTTPD changes have to be in place *before* any move.

Also it makes sense to test the changes before a move.

So I think the sequence should be:

Update TLP httpd configs.
This should not affect existing behaviour as the rules are additional.

Test at least one banner and one dist redirect.

The dist redirect test should be easy as already noted.

If the banner prefixing works with a non-existent site (404) then that
will be easy to test as well.

>> I think it would make sense to implement the rules on the existing
>> site initially.
>>
>> This can be done by copying the generated directories/files from the
>> jekyll or lua PoCs
>> [This is a one-off, so no need to automate it]
>>
>> It would be easy to test the dist/ redirection by creating a dummy
>> flags directory.
>>
>> I think it requires an existing site to test the banners.
>
>
>   HPP
>
>    _
> Henk P. Penning, ICT-beta R Uithof MG-403_/ \_
> Faculty of Science, Utrecht UniversityT +31 30 253 4106 / \_/ \
> Leuvenlaan 4, 3584CE Utrecht, NL  F +31 30 253 4553 \_/ \_/
> http://www.staff.science.uu.nl/~penni101/ M penn...@uu.nl \_/


Re: Proposed httpd tlp config changes for Attic redirects

2018-04-28 Thread Henk P. Penning

On Sat, 28 Apr 2018, sebb wrote:


Date: Sat, 28 Apr 2018 23:00:32 +0200
From: sebb 
To: general@attic.apache.org
Subject: Proposed httpd tlp config changes for Attic redirects

I've created an updated copy of the TLP httpd configs for the proposed
flags/banners layout:

https://github.com/apache/infrastructure-puppet/compare/deployment...sebbASF:attic-flags

The rules are in addition to the existing rules.
This makes it easier to do a changeover.
Once the new layout is in place, the old rules can be dropped.

@henkp: do the rules look OK to you?


  'banners' is a file ; so, use '-f' instead of '-d' :

  - 
  + 


If so, I can create a pull request.


  I think we should stop 'fixing' the 'old' site and move
  to a new site.


I think it would make sense to implement the rules on the existing
site initially.

This can be done by copying the generated directories/files from the
jekyll or lua PoCs
[This is a one-off, so no need to automate it]

It would be easy to test the dist/ redirection by creating a dummy
flags directory.

I think it requires an existing site to test the banners.


  HPP

   _
Henk P. Penning, ICT-beta R Uithof MG-403_/ \_
Faculty of Science, Utrecht UniversityT +31 30 253 4106 / \_/ \
Leuvenlaan 4, 3584CE Utrecht, NL  F +31 30 253 4553 \_/ \_/
http://www.staff.science.uu.nl/~penni101/ M penn...@uu.nl \_/


Proposed httpd tlp config changes for Attic redirects

2018-04-28 Thread sebb
I've created an updated copy of the TLP httpd configs for the proposed
flags/banners layout:

https://github.com/apache/infrastructure-puppet/compare/deployment...sebbASF:attic-flags

The rules are in addition to the existing rules.
This makes it easier to do a changeover.
Once the new layout is in place, the old rules can be dropped.

@henkp: do the rules look OK to you?
If so, I can create a pull request.

I think it would make sense to implement the rules on the existing
site initially.

This can be done by copying the generated directories/files from the
jekyll or lua PoCs
[This is a one-off, so no need to automate it]

It would be easy to test the dist/ redirection by creating a dummy
flags directory.

I think it requires an existing site to test the banners.

S.