server { server_name time-based.snapshots.deb.tails.boum.org; rewrite ^/(debian|debian-security)/[0-9]+(/?.*) http://deb.debian.org/$1$2; rewrite ^/torproject/[0-9]+(/?.*) http://deb.torproject.org/torproject.org$1; rewrite ^/[0-9.]+(/?.*) http://deb.debian.org$1; location ~ ^/(debian|debian-security|tails|torproject)/project/trace/(debian|debian-security|tails|torproject) { proxy_pass http://204.13.164.63:80; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Protocol $scheme; proxy_set_header X-Forwarded-Host $http_host; } location ~ ^/tails { proxy_pass http://204.13.164.63:80; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Protocol $scheme; proxy_set_header X-Forwarded-Host $http_host; } listen 127.0.0.1:80; listen *:80; } server { server_name tagged.snapshots.deb.tails.boum.org; rewrite ^/[0-9a-z.-]+/(debian|debian-security)/(.*) http://deb.debian.org/$1/$2; rewrite ^/[0-9a-z.-]+/torproject/(.*) http://deb.torproject.org/torproject.org/$1; listen 127.0.0.1:80; listen *:80; }