/[adm]/puppet/modules/apache/templates/vhost_django_app.conf
ViewVC logotype

Contents of /puppet/modules/apache/templates/vhost_django_app.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 621 - (show annotations) (download)
Wed Dec 15 03:11:52 2010 UTC (14 years, 1 month ago) by misc
File size: 523 byte(s)
add ssl support to django deployment class
1 <% if use_ssl then
2 port = 443
3 else
4 port = 80
5 end
6 %>
7
8 <VirtualHost *:<%= port %>>
9 <% if use_ssl then %>
10 SSLEngine on
11 SSLCertificateFile /etc/ssl/apache/<%= name %>.pem
12 SSLCertificateKeyFile /etc/ssl/apache/<%= name %>.pem
13 <% end %>
14
15 ServerName <%= name %>
16 # Serve static content directly
17 DocumentRoot /dev/null
18
19 WSGIScriptAlias / /usr/local/lib/wsgi/<%= name %>.wsgi
20 #footer
21 <Location />
22 Allow from all
23 </Location>
24 </VirtualHost>
25

  ViewVC Help
Powered by ViewVC 1.1.30