Skip to content

Commit 92dc90e

Browse files
committed
nightly: Redirect nightly requests to CloudFront
Redirect requests for nightly tarballs (*.tar.gz and *.tar.bz2) and the latest_snapshot.txt for nightlies (which is generated as part of the nightly tarball build process) to CloudFront, so that scripts pulling from www.open-mpi.org don't break. Signed-off-by: Brian Barrett <[email protected]> Former-commit-id: 28d1f9d
1 parent ad42d66 commit 92dc90e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.htaccess

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,10 @@ RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
3434
## These probably aren't necessary any more
3535
RewriteRule ^MailArchives/(.*)$ /community/lists/$1 [L,R=301]
3636
RewriteRule ^(.+)(\.php|\.html)/$ /$1$2 [R=301,L]
37+
38+
# redirect requests for nightly tarballs / nightly latest_snapshot.txt requests
39+
# to download.open-mpi.org.
40+
RewriteRule software/(.*)/nightly/(.*)/(latest_snapshot\.txt|.*\.tar\.gz|.*\.tar\.bz2) https://download.open-mpi.org/nightly/$1/$2/$3 [L,R=302]
41+
RewriteRule nightly/(.*)/(latest_snapshot\.txt|.*\.tar\.gz|.*\.tar\.bz2) https://download.open-mpi.org/nightly/open-mpi/$1/$2 [L,R=302]
42+
3743
</IfModule>

0 commit comments

Comments
 (0)