Skip to content

Commit

Permalink
Redirect jenkins.io to www.jenkins.io
Browse files Browse the repository at this point in the history
  • Loading branch information
olblak committed Apr 21, 2020
1 parent ce3b362 commit f2de359
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions charts/jenkinsio/templates/nginx-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ data:
server_name localhost;
{{- if .Values.forceJenkinsIoHost -}}
if ( $host != 'jenkins.io') {
return 301 $scheme://jenkins.io$request_uri;
if ( $host != 'www.jenkins.io') {
return 301 $scheme://www.jenkins.io$request_uri;
}
{{- end }}
Expand All @@ -26,7 +26,7 @@ data:
index index.html index.htm;
# Language setting
if ($lang) {
rewrite ^/$ https://jenkins.io/$lang$1;
rewrite ^/$ https://www.jenkins.io/$lang$1;
}
}
Expand Down Expand Up @@ -101,7 +101,7 @@ data:
# baked in jenkins.war 1.587 / 1.580.1
rewrite ^/security-144$ https://wiki.jenkins-ci.org/display/JENKINS/Slave+To+Master+Access+Control permanent;
# baked in 1.600 easter egg
rewrite ^/100k$ https://jenkins.io/content/jenkins-celebration-day-february-26 permanent;
rewrite ^/100k$ https://www.jenkins.io/content/jenkins-celebration-day-february-26 permanent;
rewrite ^/jep/([0-9]+) https://github.com/jenkinsci/jep/blob/master/jep/$1/README.adoc permanent;
rewrite ^/iep/([0-9]+) https://github.com/jenkins-infra/iep/blob/master/iep/$1/README.adoc permanent;
}
4 changes: 2 additions & 2 deletions charts/jenkinsio/templates/zh-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ data:
server_name localhost;
{{- if .Values.forceJenkinsIoHost -}}
if ( $host != 'jenkins.io') {
return 301 $scheme://jenkins.io/zh/$request_uri;
if ( $host != 'www.jenkins.io') {
return 301 $scheme://www.jenkins.io/zh/$request_uri;
}
{{- end }}
Expand Down

0 comments on commit f2de359

Please sign in to comment.