aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/templates/vhost_base.conf
diff options
context:
space:
mode:
Diffstat (limited to 'modules/apache/templates/vhost_base.conf')
-rw-r--r--modules/apache/templates/vhost_base.conf23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/apache/templates/vhost_base.conf b/modules/apache/templates/vhost_base.conf
new file mode 100644
index 00000000..266e7c29
--- /dev/null
+++ b/modules/apache/templates/vhost_base.conf
@@ -0,0 +1,23 @@
+<%- if use_ssl then
+ port = 443
+else
+ port = 80
+end
+-%>
+
+<VirtualHost *:<%= port %>>
+<%- if use_ssl then -%>
+ SSLEngine on
+ SSLCertificateFile /etc/ssl/apache/<%= name %>.pem
+ SSLCertificateKeyFile /etc/ssl/apache/<%= name %>.pem
+<%- end -%>
+ ServerName <%= real_vhost %>
+ DocumentRoot <%= location %>
+
+ <%= content %>
+
+ <Location />
+ Allow from all
+ </Location>
+</VirtualHost>
+