Parent Directory | Revision Log
- fix syntax error in the template ( TODO add a check in pre-commit )
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 | #TODO deploy SNI later |
12 | SSLCertificateFile /etc/ssl/apache/apache.pem |
13 | SSLCertificateKeyFile /etc/ssl/apache/apache.pem |
14 | <% end %> |
15 | ServerName <%= name %> |
16 | # Serve static content directly |
17 | DocumentRoot /dev/null |
18 | <% if location then %> |
19 | Alias /static <%= location %>/root/static |
20 | <% end %> |
21 | Alias / <%= script %>/ |
22 | 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 |