tadd lighttpd configuration - amprolla - devuan's apt repo merger
 (HTM) git clone git://parazyd.org/amprolla.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 188ced9df163ef447cb43f05cbdcf576dca6f413
 (DIR) parent ca4e0f7e805ce49138c5c0810809582cd08891fa
 (HTM) Author: parazyd <parazyd@dyne.org>
       Date:   Tue, 18 Jul 2017 00:31:27 +0200
       
       add lighttpd configuration
       
       Diffstat:
         A contrib/lighttpd.conf               |      34 +++++++++++++++++++++++++++++++
       
       1 file changed, 34 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/contrib/lighttpd.conf b/contrib/lighttpd.conf
       t@@ -0,0 +1,34 @@
       +# TODO: https configuration
       +# https://redmine.lighttpd.net/projects/1/wiki/docs_ssl
       +
       +$HTTP["host"] == "auto.mirror.devuan.org" {
       +
       +        server.document-root = "/srv/amprolla"
       +        dir-listing.activate = "enable"
       +        dir-listing.encoding = "utf-8"
       +
       +        $HTTP["scheme"] == "http" {
       +                url.redirect = (
       +                        "^/merged/pool/DEVUAN/(.*)" => "http://auto.mirror.devuan.org/devuan/pool/$1",
       +                        "^/merged/pool/DEBIAN-SECURITY/(.*)" => "http://deb.debian.org/debian-security/pool/$1",
       +                        "^/merged/pool/DEBIAN/(.*)" => "http://deb.debian.org/debian/pool/$1"
       +                )
       +        }
       +}
       +
       +
       +$HTTP["host"] == "devuanfwojg73k6r.onion" {
       +
       +        server.document-root = "/srv/amprolla"
       +        dir-listing.activate = "enable"
       +        dir-listing.encoding = "utf-8"
       +
       +        $HTTP["scheme"] == "http" {
       +                # see: https://onion.debian.org
       +                url.redirect = (
       +                        "^/merged/pool/DEVUAN/(.*)" => "http://devuanfwojg73k6r.onion/devuan/pool/$1",
       +                        "^/merged/pool/DEBIAN-SECURITY/(.*)" => "http://vwakviie2ienjx6t.onion/debian-security/pool/$1",
       +                        "^/merged/pool/DEBIAN/(.*)" => "http://vwakviie2ienjx6t.onion/debian/pool/$1"
       +                )
       +        }
       +}