summaryrefslogtreecommitdiff
path: root/templates/default.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/default.erb')
-rw-r--r--templates/default.erb17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/default.erb b/templates/default.erb
index 08c3a87..3d6baaf 100644
--- a/templates/default.erb
+++ b/templates/default.erb
@@ -12,3 +12,20 @@
</VirtualHost>
# end vhost for <%= @fqdn %>
+
+# A default 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
+Listen 81
+<VirtualHost 127.0.0.1:81>
+</VirtualHost>