For anything older than the branches still shown in https://pkgs.alpinelinux.org,
(from v3.0 to v3.12), the packages should be downloaded from their cdn:
https://dl-cdn.alpinelinux.org/alpine
But as mentioned above, anything older than 3 releases from the lastest current one(v3.21) are end of life and should not be used for more than testing.