Parent Directory
|
Revision Log
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 |