OLD | NEW |
1 server { | 1 location / |
2 server_name <%= @domain %>; | 2 { |
3 | 3 fastcgi_pass unix:/tmp/trac-fastcgi.sock; |
4 <% if is_default %> | 4 fastcgi_split_path_info ^()(.*)$; |
5 listen 80 default_server; | 5 include /etc/nginx/fastcgi_params; |
6 listen [::]:80 default_server; | 6 fastcgi_param PATH_INFO $fastcgi_path_info; |
7 <% else %> | |
8 listen 80; | |
9 listen [::]:80; | |
10 <% end %> | |
11 | |
12 location / { | |
13 rewrite (.*) https://$host$1 permanent; | |
14 } | |
15 } | 7 } |
16 | 8 |
17 server { | 9 location /chrome/ |
18 server_name <%= @domain %>; | 10 { |
19 | 11 alias /home/trac/htdocs/htdocs/; |
20 <% if is_default %> | |
21 listen 443 ssl default_server; | |
22 listen [::]:443 ssl default_server; | |
23 <% else %> | |
24 listen 443 ssl; | |
25 listen [::]:443 ssl; | |
26 <% end %> | |
27 | |
28 ssl_certificate adblockplus.org_sslcert.pem; | |
29 ssl_certificate_key adblockplus.org_sslcert.key; | |
30 | |
31 add_header Strict-Transport-Security max-age=31536000; | |
32 | |
33 location / | |
34 { | |
35 fastcgi_pass unix:/tmp/trac-fastcgi.sock; | |
36 fastcgi_split_path_info ^()(.*)$; | |
37 include /etc/nginx/fastcgi_params; | |
38 fastcgi_param PATH_INFO $fastcgi_path_info; | |
39 } | |
40 | |
41 location /chrome/ | |
42 { | |
43 alias /home/trac/htdocs/htdocs/; | |
44 } | |
45 } | 12 } |
OLD | NEW |