Skip to content

Instantly share code, notes, and snippets.

@tianon
Last active June 14, 2023 00:05
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tianon/38acbba8f5f499bb4003d925f618b28e to your computer and use it in GitHub Desktop.
Save tianon/38acbba8f5f499bb4003d925f618b28e to your computer and use it in GitHub Desktop.
Perpetually Debian Jessie via NGINX
deb http://example.com/jessie jessie main
deb http://example.com/jessie-security jessie main
deb http://example.com/jessie jessie-updates main
server {
// ...
location ~ ^/jessie/dists/jessie(.*) {
return 302 http://deb.debian.org/debian/dists/stable$1;
}
location ~ ^/jessie/(pool.*) {
return 302 http://deb.debian.org/debian/$1;
}
location ~ ^/jessie-security/dists/jessie(.*) {
return 302 http://deb.debian.org/debian-security/dists/stable-updates$1;
}
location ~ ^/jessie-security/(pool.*) {
return 302 http://deb.debian.org/debian-security/$1;
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment