diff --git a/modules/cgit/templates/git.vhost.erb b/modules/cgit/templates/git.vhost.erb
index b883c67b4f..9cb587199f 100644
--- a/modules/cgit/templates/git.vhost.erb
+++ b/modules/cgit/templates/git.vhost.erb
@@ -12,7 +12,6 @@
 
 </VirtualHost>
 
-<IfModule mod_ssl.c>
 <VirtualHost <%= scope.lookupvar("cgit::vhost_name") %>:443>
   ServerName <%= scope.lookupvar("cgit::vhost_name") %>
   ServerAdmin <%= scope.lookupvar("cgit::serveradmin") %>
@@ -36,4 +35,3 @@
   SSLCertificateChainFile <%= scope.lookupvar("cgit::ssl_chain_file") %>
 <% end %>
 </VirtualHost>
-</IfModule>