blob: ca0aca681a6d51c67bccd9b46fe8baed58f0a1ee (
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
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>
|