aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/templates/vhost_django_app.conf
blob: 1cc12458c3b7cdd8dd8a66b0e9ccb955ffdfe3dc (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
<% 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

        WSGIScriptAlias / /usr/local/lib/wsgi/<%= name %>.wsgi
#footer
        <Location />
            Allow from all
        </Location>
</VirtualHost>