From f170a3664268cabf8c2b22e4430d9680edd5db20 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 3 Jul 2023 22:48:23 -0300 Subject: Feat: adds a catch-all VirtualHost for any site listening only in localhost --- templates/default.erb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/templates/default.erb b/templates/default.erb index 08c3a87..6e9e4fe 100644 --- a/templates/default.erb +++ b/templates/default.erb @@ -12,3 +12,19 @@ # end vhost for <%= @fqdn %> + +# A catch-all VirtualHost for any site listening only in localhost. +# +# This is meant to protect these sites (such as Tor Onion Services) from +# exposing other data from the server, such as the default public VirtualHost +# above. +# +# This is not a strong measure, since the server can be fingerprinted by other +# means. +# +# Best thing to do is not mix public and non-public sites in the same server. +# +# For additional details, check +# https://gitlab.torproject.org/tpo/onion-services/onion-support/-/issues/30 + + -- cgit v1.2.3