Commit 472b1951 authored by Daniel Juarez's avatar Daniel Juarez 💬
Browse files

INC2969610

parent b3b743f2
Pipeline #3197895 passed with stage
in 1 minute and 57 seconds
# Redirect slc4 and slc5 to old website
location /linux/scientific4/ {
rewrite ^/(.*)$ http://linux-old.web.cern.ch/$1 permanent;
rewrite ^/(.*)$ $scheme://linux-old.web.cern.ch/$1 permanent;
}
location /scientific4/ {
rewrite ^/(.*)$ http://linux-old.web.cern.ch/linux-old/$1 permanent;
rewrite ^/(.*)$ $scheme://linux-old.web.cern.ch/linux-old/$1 permanent;
}
location /scientific4 {
return 301 http://linux-old.web.cern.ch/linux-old/scientific4;
return 301 $scheme://linux-old.web.cern.ch/linux-old/scientific4;
}
location /linux/scientific5/ {
rewrite ^/(.*)$ http://linux-old.web.cern.ch/$1 permanent;
rewrite ^/(.*)$ $scheme://linux-old.web.cern.ch/$1 permanent;
}
location /scientific5/ {
rewrite ^/(.*)$ http://linux-old.web.cern.ch/linux-old/$1 permanent;
rewrite ^/(.*)$ $scheme://linux-old.web.cern.ch/linux-old/$1 permanent;
}
location /scientific5 {
return 301 http://linux-old.web.cern.ch/linux-old/scientific5;
return 301 $scheme://linux-old.web.cern.ch/linux-old/scientific5;
}
# Redirect slc6 to archive website
location /linux/scientific6/ {
rewrite ^/(.*)$ http://linux-archive.web.cern.ch/$1 permanent;
rewrite ^/(.*)$ $scheme://linux-archive.web.cern.ch/$1 permanent;
}
location /scientific6 {
rewrite ^/(.*)$ http://linux-archive.web.cern.ch/$1 permanent;
rewrite ^/(.*)$ $scheme://linux-archive.web.cern.ch/$1 permanent;
}
location /updates/slc6/ {
rewrite ^/(.*)$ http://linux-archive.web.cern.ch/$1 permanent;
rewrite ^/(.*)$ $scheme://linux-archive.web.cern.ch/$1 permanent;
}
# Keep linux.web.cern.ch/linux/path urls working, redirecting to ommit the /linux/ part
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment