blob: 631067efe6f9b3fd7cee8c7c7b65a541e1e7dea1 (
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
<% endif %>
Alias / <%= script %>/
FastCgiServer <%= script %> -processes <%= process %> -idle-timeout 30
<Location />
Allow from all
</Location>
</VirtualHost>
|