OLD | NEW |
1 server { | 1 server { |
2 server_name <%= @domain %>; | 2 server_name <%= @domain %>; |
3 | 3 |
4 <% if is_default %> | 4 <% if is_default %> |
5 listen 80 default_server; | 5 listen 80 default_server; |
6 listen [::]:80 default_server; | 6 listen [::]:80 default_server; |
7 <% else %> | 7 <% else %> |
8 listen 80; | 8 listen 80; |
9 listen [::]:80; | 9 listen [::]:80; |
10 <% end %> | 10 <% end %> |
(...skipping 14 matching lines...) Expand all Loading... |
25 listen [::]:443 ssl; | 25 listen [::]:443 ssl; |
26 <% end %> | 26 <% end %> |
27 | 27 |
28 ssl_certificate adblockplus.org_sslcert.pem; | 28 ssl_certificate adblockplus.org_sslcert.pem; |
29 ssl_certificate_key adblockplus.org_sslcert.key; | 29 ssl_certificate_key adblockplus.org_sslcert.key; |
30 | 30 |
31 add_header Strict-Transport-Security max-age=31536000; | 31 add_header Strict-Transport-Security max-age=31536000; |
32 | 32 |
33 location / | 33 location / |
34 { | 34 { |
35 set $path_info $request_uri; | |
36 if ($path_info ~ "(.*?)\?") | |
37 { | |
38 set $path_info $1; | |
39 } | |
40 | |
41 fastcgi_pass unix:/tmp/trac-fastcgi.sock; | 35 fastcgi_pass unix:/tmp/trac-fastcgi.sock; |
| 36 fastcgi_split_path_info ^()(.*)$; |
42 include /etc/nginx/fastcgi_params; | 37 include /etc/nginx/fastcgi_params; |
43 fastcgi_param SCRIPT_NAME ""; | 38 fastcgi_param PATH_INFO $fastcgi_path_info; |
44 fastcgi_param PATH_INFO $path_info; | |
45 } | 39 } |
46 | 40 |
47 location /chrome/ | 41 location /chrome/ |
48 { | 42 { |
49 alias /home/trac/htdocs/htdocs/; | 43 alias /home/trac/htdocs/htdocs/; |
50 } | 44 } |
51 } | 45 } |
OLD | NEW |