Skip to content

Commit

Permalink
fix(publish/new UC httpd) use a RedirectMatch instead of `RewriteRu…
Browse files Browse the repository at this point in the history
…le` for Apache2 redirection fallback (jenkins-infra#790)

* fix(publish) use a `RedirectMatch` instead of `RewriteRule` for Apache2 fallback

* Update site/publish.sh
  • Loading branch information
dduportal authored Jul 26, 2024
1 parent be07a4c commit 06daace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ then
{
echo ''
echo "## Fallback: if not rules match then redirect to ${mirrorbits_hostname}"
echo "RewriteRule ^.* https://${mirrorbits_hostname}%{REQUEST_URI}? [NC,L,R=307]"
echo 'RedirectMatch 307 (.*)$ https://'"${mirrorbits_hostname}"'$1'
} >> ./www-redirections/.htaccess

echo '----------------------- Launch synchronisation(s) -----------------------'
Expand Down

0 comments on commit 06daace

Please sign in to comment.