aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/templates/vhost_catalyst_app.conf
diff options
context:
space:
mode:
Diffstat (limited to 'modules/apache/templates/vhost_catalyst_app.conf')
-rw-r--r--modules/apache/templates/vhost_catalyst_app.conf33
1 files changed, 5 insertions, 28 deletions
diff --git a/modules/apache/templates/vhost_catalyst_app.conf b/modules/apache/templates/vhost_catalyst_app.conf
index ca0aca68..eaa652d7 100644
--- a/modules/apache/templates/vhost_catalyst_app.conf
+++ b/modules/apache/templates/vhost_catalyst_app.conf
@@ -1,28 +1,5 @@
-<% 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 <%= name %>
- # Serve static content directly
- DocumentRoot /dev/null
-
-<% if location != '' then %>
- Alias /static <%= location %>/root/static
-<% end %>
- Alias / <%= script %>/
- FastCgiServer <%= script %> -processes <%= process %> -idle-timeout 30
-
- <Location />
- Allow from all
- </Location>
-</VirtualHost>
-
+<%- if location != '' then -%>
+Alias /static <%= location %>/root/static
+<%- end -%>
+Alias / <%= script %>/
+FastCgiServer <%= script %> -processes <%= process %> -idle-timeout 30