Parent Directory | Revision Log
- fix syntax error in the template ( TODO add a check in pre-commit )
1 | misc | 196 | <% 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 | #TODO deploy SNI later | ||
12 | SSLCertificateFile /etc/ssl/apache/apache.pem | ||
13 | SSLCertificateKeyFile /etc/ssl/apache/apache.pem | ||
14 | <% end %> | ||
15 | misc | 183 | ServerName <%= name %> |
16 | misc | 167 | # Serve static content directly |
17 | DocumentRoot /dev/null | ||
18 | misc | 194 | <% if location then %> |
19 | Alias /static <%= location %>/root/static | ||
20 | misc | 199 | <% end %> |
21 | misc | 170 | Alias / <%= script %>/ |
22 | misc | 167 | FastCgiServer <%= script %> -processes <%= process %> -idle-timeout 30 |
23 | |||
24 | <Location /> | ||
25 | Allow from all | ||
26 | </Location> | ||
27 | </VirtualHost> | ||
28 |
ViewVC Help | |
Powered by ViewVC 1.1.30 |