summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/default.erb16
1 files changed, 16 insertions, 0 deletions
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 @@
</VirtualHost>
# 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
+<VirtualHost 127.0.0.1:80>
+</VirtualHost>