Skip to content
Snippets Groups Projects

Redirection for old distros

Merged Daniel Juarez Gonzalez requested to merge qa into master
2 files
+ 27
2
Compare changes
  • Side-by-side
  • Inline
Files
2
# Redirect slc4 and slc5 to old website
location /linux/scientific4/ {
rewrite ^/(.*)$ http://linux-old.web.cern.ch/$1 permanent;
}
location /scientific4/ {
rewrite ^/(.*)$ http://linux-old.web.cern.ch/linux/$1 permanent;
}
location /scientific4 {
return 301 http://linux-old.web.cern.ch/linux/scientific4;
}
location /linux/scientific5/ {
rewrite ^/(.*)$ http://linux-old.web.cern.ch/$1 permanent;
}
location /scientific5/ {
rewrite ^/(.*)$ http://linux-old.web.cern.ch/linux/$1 permanent;
}
location /scientific5 {
return 301 http://linux-old.web.cern.ch/linux/scientific5;
}
# Keep linux.web.cern.ch/linux/path urls working, redirecting to ommit the /linux/ part
location = /linux {
return 301 /;
@@ -23,4 +48,4 @@ try_files $uri $uri.shtml $uri/ =404;
server_tokens off;
# Use our custom 403 page, a simple copypaste from theme's 404
error_page 403 /403.html;
\ No newline at end of file
error_page 403 /403.html;
Loading