Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.