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