aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/templates/vhost_catalyst_app.conf
blob: e40e5a61b7ca618a6cd3650e99ba5fcb5bc97799 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<% if use_ssl then
    port = 443
else
    port = 80
end
%>

<VirtualHost *:<%= port %>>
<% if use_ssl then %>
        SSLEngine on
        #TODO deploy SNI later 
        SSLCertificateFile /etc/ssl/apache/apache.pem
        SSLCertificateKeyFile /etc/ssl/apache/apache.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>