From d51ee6805db3463044c71db99fba5cfb3e83c536 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 14 Jul 2023 16:04:42 -0300 Subject: Allow for VirtualHosts in other ports --- templates/default.erb | 3 ++- templates/site.erb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/default.erb b/templates/default.erb index 9bfd2b8..3d6baaf 100644 --- a/templates/default.erb +++ b/templates/default.erb @@ -26,5 +26,6 @@ # # For additional details, check # https://gitlab.torproject.org/tpo/onion-services/onion-support/-/issues/30 - +Listen 81 + diff --git a/templates/site.erb b/templates/site.erb index 3bb32a2..a8ad894 100644 --- a/templates/site.erb +++ b/templates/site.erb @@ -1,5 +1,5 @@ # begin vhost for <%= @title %> -:<%= scope.lookupvar('apache::http_port') %>> +:<%= @port %>> ServerName <%= @title %>.<%= @hosting_domain %> <% if @server_alias != false %> ServerAlias <%= @server_alias %><% end %> DocumentRoot <%= @docroot %> -- cgit v1.2.3