lighttpd.conf (1047B)
1 # TODO: https configuration 2 # https://redmine.lighttpd.net/projects/1/wiki/docs_ssl 3 4 $HTTP["host"] == "auto.mirror.devuan.org" { 5 6 server.document-root = "/srv/amprolla" 7 dir-listing.activate = "enable" 8 dir-listing.encoding = "utf-8" 9 10 $HTTP["scheme"] == "http" { 11 url.redirect = ( 12 "^/merged/pool/DEVUAN/(.*)" => "http://auto.mirror.devuan.org/devuan/pool/$1", 13 "^/merged/pool/DEBIAN-SECURITY/(.*)" => "http://deb.debian.org/debian-security/pool/$1", 14 "^/merged/pool/DEBIAN/(.*)" => "http://deb.debian.org/debian/pool/$1" 15 ) 16 } 17 } 18 19 20 $HTTP["host"] == "devuanfwojg73k6r.onion" { 21 22 server.document-root = "/srv/amprolla" 23 dir-listing.activate = "enable" 24 dir-listing.encoding = "utf-8" 25 26 $HTTP["scheme"] == "http" { 27 # see: https://onion.debian.org 28 url.redirect = ( 29 "^/merged/pool/DEVUAN/(.*)" => "http://devuanfwojg73k6r.onion/devuan/pool/$1", 30 "^/merged/pool/DEBIAN-SECURITY/(.*)" => "http://vwakviie2ienjx6t.onion/debian-security/pool/$1", 31 "^/merged/pool/DEBIAN/(.*)" => "http://vwakviie2ienjx6t.onion/debian/pool/$1" 32 ) 33 } 34 }