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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 621 - (hide 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 misc 621 <% 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 misc 182 ServerName <%= name %>
16     # Serve static content directly
17     DocumentRoot /dev/null
18    
19 misc 201 WSGIScriptAlias / /usr/local/lib/wsgi/<%= name %>.wsgi
20 misc 265 #footer
21 misc 182 <Location />
22     Allow from all
23     </Location>
24     </VirtualHost>
25    

  ViewVC Help
Powered by ViewVC 1.1.30