Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(publish.sh) set up httpd fallback redirection to mirrors [new UC] #776

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions site/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ then
--exclude='updates' `# Exclude ALL 'updates' directories, not only the root /updates (because symlink dereferencing create additional directories` \
./www2/ ./www3/

# Append the httpd -> mirrorbits redirection as fallback (end of htaccess file) for www3 only
mirrorbits_hostname='mirrors.updates.jenkins.io'
echo '' >> ./www3/.htaccess
echo "## Fallback: if not rules match then redirect to ${mirrorbits_hostname}" >> ./www3/.htaccess
echo "RewriteRule ^.* https://${mirrorbits_hostname}%{REQUEST_URI}? [NC,L,R=307]" >> ./www3/.htaccess

# Add File Share sync to the tasks
tasks+=('azsync')

Expand Down