Last active
June 14, 2023 00:05
-
-
Save tianon/38acbba8f5f499bb4003d925f618b28e to your computer and use it in GitHub Desktop.
Perpetually Debian Jessie via NGINX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deb http://example.com/jessie jessie main | |
deb http://example.com/jessie-security jessie main | |
deb http://example.com/jessie jessie-updates main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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