On Sun, 4 Apr 2021 at 01:31, Dave Fisher <w...@apache.org> wrote: > > > > > On Apr 3, 2021, at 4:49 PM, sebb <seb...@gmail.com> wrote: > > > > On Sat, 3 Apr 2021 at 23:43, Dave Fisher <w...@apache.org> wrote: > >> > >> > >> > >>> On Apr 3, 2021, at 3:38 PM, sebb <seb...@gmail.com> wrote: > >>> > >>> On Wed, 31 Mar 2021 at 22:28, sebb <seb...@gmail.com> wrote: > >>>> > >>>> On Wed, 31 Mar 2021 at 17:48, Dave Fisher <w...@apache.org> wrote: > >>>>> > >>>>> Hi Sebb, > >>>>> > >>>>> I noticed you did a lot of updates to .htaccess [1] - I have some > >>>>> inline questions. > >>>>> > >>>>>> On Mar 30, 2021, at 4:31 PM, Dave Fisher <w...@apache.org> wrote: > >>>>>> > >>>>>> Hi Sebb, > >>>>>> > >>>>>>> On Mar 30, 2021, at 4:22 PM, sebb <seb...@gmail.com> wrote: > >>>>>>> > >>>>>>> It's currently quite awkward fixing up retired podling websites so > >>>>>>> they redirect to the status page. > >>>>>>> There are currently about 6 such podlings, dating back to Nov 2013. > >>>>>>> > >>>>>>> [It's easy enough to do this for incubator sub-sites (e.g. > >>>>>>> http://incubator.apache.org/wave), as these can use a single .htaccess > >>>>>>> file; that is not the case for the above sites otherwise they would > >>>>>>> have been fixed ages ago] > >>>>>>> > >>>>>>> Recent podlings use websites like http://ariatosca.apache.org/ and/or > >>>>>>> http://ariatosca.incubator.apache.org/ > >>>>>>> The redirects need to be added in each website source. > >>>>>>> > >>>>>>> This can be difficult to do, see INFRA-21451 re Tamaya. > >>>>>>> This was opened on Feb 21st and has yet to be completed. > >>>>>>> > >>>>>>> I have proposed an Infra PR which should make it much easier to set up > >>>>>>> the redirect to the status file. > >>>>>>> > >>>>>>> The idea is to set up a special directory: > >>>>>>> http://incubator.apache.org/retired/ > >>>>>>> > >>>>>>> For each retired podling, create a marker directory, e.g. > >>>>>>> tamaya/ > >>>>>> > >>>>>> I can add a step in the clutch2.sh shell script to maintain these > >>>>>> placeholders. > >>>>> > >>>>> Do you still need retired/${podling} marker directories? > >>>> > >>>> Not yet. > >>>> > >>>> Infra have not yet applied the PR, so the marker directories won't > >>>> have any effect yet. > >>> > >>> The PR has now been applied. > >> > >> So, please review https://incubator.apache.org/podlings_retired.txt > > > > No idea what that file has to do with this thread, or what you expect > > me to review. > > > >> If create a retired/$col1 directory on the website the trouble will > >> resolve? > > > > Try creating retired/tamaya/ and see what happens to > > http://tamaya.apache.org/ > > It should redirect to http://incubator.apache.org/projects/tamaya.html > > > > N.B. this only needs to be done for retired podlings whose URLs don't > > already redirect. > > > > There are only about 6 of those, see: > > https://issues.apache.org/jira/browse/INCUBATOR-262 > > > >> I want to make sure I'm picking the podling attribute you expect. > > > > The directory name under retired/ must be the same as the unqualified > > host name for the podling website. > > I’m not sure I’m doing what you expected: > > A file is created with the directories you expect at > http://incubator.apache.org/retired/tamaya/project.txt
There is no need for a file. However AIUI Git does not support empty directories in checkouts. It might be better to create an empty index.html file instead. > The source is here: > https://github.com/apache/incubator/blob/master/assets/retired/tamaya/project.txt > > However I’m not seeing the redirect. There was a missing path segment in the directory check, so the server was not finding the directory. This has now been fixed, and http://tamaya.apache.org/ does redirect. (You may need to clear the browser cache). However http://tamaya.incubator.apache.org/ is not redirecting properly. I need to look into this further. > > > > i.e. tamaya for tamaya.apache.org or tamaya.incubator.apache.org > > > >> Regards, > >> Dave > >> > >>> > >>>>>> > >>>>>>> > >>>>>>> If the web server detects that there is a directory matching the first > >>>>>>> part of the web host name (e.g. tamaya), then it redirects to > >>>>>>> http://incubator.apache.org/projects/tamaya.html (e.g.) > >>>>>> > >>>>>> I think we should also review the .htaccess for the incubator. More > >>>>>> tomorrow. > >>>>> > >>>>> Would you explain .htaccess comments like: > >>>>> # > >>>>> https://gitbox.apache.org/repos/asf?p=incubator-retired-pirk.git;a=blob;f=.htaccess;hb=refs/heads/asf-site > >>>>> # https://svn.apache.org/repos/asf/incubator/sirona/site/.htaccess > >>>> > >>>> There was a TODO for the retired podling; I replaced it with details > >>>> of where the htaccess file is located. > >>>> (The redirect cannot be done in [1]) > >>>> > >>>>> > >>>>> Would .htaccess redirects like the following break anything? > >>>>> RedirectMatch Permanent ^/sirona(/.*)?$ > >>>>> http://incubator.apache.org/projects/sirona.html > >>>> > >>>> Redirects would not work. > >>>> > >>>> Or rather, they would only apply to > >>>> http(s)://incubator.apache.org/sirona/* > >>>> > >>>> I don't think that would do any harm, but the original website was > >>>> http(s)://sirona.apache.org/ so they would not be particularly useful. > >>>> > >>>>> If possible I think that the whole set of graduated and retired > >>>>> .htaccess could be generated. > >>>> > >>>> Not sure it's worth the effort of coding, testing and maintaining such > >>>> a generator. > >>>> > >>>> Changes are not that frequent, and are pretty easy to do by reference > >>>> to an existing entry. > >>>> > >>>> In any case, I don't think there will be (m)any more changes to [1] -- > >>>> podling redirects will have to be made elsewhere. > >>>> > >>>> When current podlings retire, the htaccess entry has to be made in the > >>>> podling website. > >>>> > >>>> However if Infra apply the PR, redirects can be enabled simply by > >>>> setting up the retired/<podling> marker directory. > >>> > >>> The PR has been applied, so it should now work. > >>> > >>>>> [1] > >>>>> https://raw.githubusercontent.com/apache/incubator/master/assets/.htaccess > >>>>> > >>>>> All The Best, > >>>>> Dave > >>>>> > >>>>>> > >>>>>> Regards, > >>>>>> Dave > >>>>>> > >>>>>>> > >>>>>>> Simples. > >>>>>>> > >>>>>>> Sebb. > >>>>>>> P.S. Attic works in a similar way, but adds a banner instead of > >>>>>>> redirecting. > >>>>>>> > >>>>>>> --------------------------------------------------------------------- > >>>>>>> To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org > >>>>>>> For additional commands, e-mail: general-h...@incubator.apache.org > >>>>>>> > >>>>>> > >>>>>> > >>>>>> --------------------------------------------------------------------- > >>>>>> To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org > >>>>>> For additional commands, e-mail: general-h...@incubator.apache.org > >>>>>> > >>>>> > >>>>> > >>>>> --------------------------------------------------------------------- > >>>>> To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org > >>>>> For additional commands, e-mail: general-h...@incubator.apache.org > >>>>> > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org > >>> For additional commands, e-mail: general-h...@incubator.apache.org > >>> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org > >> For additional commands, e-mail: general-h...@incubator.apache.org > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org > > For additional commands, e-mail: general-h...@incubator.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org > For additional commands, e-mail: general-h...@incubator.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org For additional commands, e-mail: general-h...@incubator.apache.org