From f2936f0eed05b7c3c40c673e6c3e6f975df58309 Mon Sep 17 00:00:00 2001 From: LoveIsGrief Date: Thu, 28 Feb 2019 23:20:02 +0100 Subject: [PATCH] i2p: apache: Catch more I2P locations They used to fall through and hit a 404 freedombox-team/plinth#1428 Request: I2P support Reviewed-by: Sunil Mohan Adapa --- data/etc/apache2/conf-available/i2p-plinth.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/etc/apache2/conf-available/i2p-plinth.conf b/data/etc/apache2/conf-available/i2p-plinth.conf index 3262c2076..3848a1750 100644 --- a/data/etc/apache2/conf-available/i2p-plinth.conf +++ b/data/etc/apache2/conf-available/i2p-plinth.conf @@ -24,3 +24,7 @@ TKTAuthToken "admin" "i2p" + +# Catch some other root i2p addresses +# These are most likely generated by javascript +RedirectMatch "^/(i2p[^/]+.*)" "/i2p/$1"