Left: | ||
Right: |
OLD | NEW |
---|---|
1 expires 1d; | 1 expires 1d; |
2 | 2 |
3 root /var/www/<%= vhost %>; | 3 root /var/www/<%= vhost %>; |
4 index index; | 4 index index; |
5 default_type text/html; | 5 default_type text/html; |
6 charset utf-8; | |
6 | 7 |
7 <% if custom_config %> | 8 <% if @custom_config %> |
8 <%= custom_config %> | 9 <%= custom_config %> |
Felix Dahlke
2015/03/13 16:24:10
I think we need to add the @ here too - it's eithe
Wladimir Palant
2015/03/13 16:27:06
Frankly, I have no idea about the significance of
Felix Dahlke
2015/03/13 16:33:34
Having read up on this, @ apparently has special s
| |
9 <% end %> | 10 <% end %> |
10 | 11 |
11 # Match Accept-Language header against available languages | 12 # Match Accept-Language header against available languages |
12 | 13 |
13 set $preferredLang ""; | 14 set $preferredLang ""; |
14 if ($http_accept_language ~ ^(\w\w)-(\w\w)\b) | 15 if ($http_accept_language ~ ^(\w\w)-(\w\w)\b) |
15 { | 16 { |
16 set $preferrredLang $1_$2; | 17 set $preferrredLang $1_$2; |
17 } | 18 } |
18 if (!-f $document_root/$preferredLang/index) | 19 if (!-f $document_root/$preferredLang/index) |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 | 70 |
70 <% if @multiplexer_locations %> | 71 <% if @multiplexer_locations %> |
71 <% @multiplexer_locations.each do |location| %> | 72 <% @multiplexer_locations.each do |location| %> |
72 location <%= location %> | 73 location <%= location %> |
73 { | 74 { |
74 fastcgi_pass unix:/tmp/multiplexer-fastcgi.sock; | 75 fastcgi_pass unix:/tmp/multiplexer-fastcgi.sock; |
75 include /etc/nginx/fastcgi_params; | 76 include /etc/nginx/fastcgi_params; |
76 } | 77 } |
77 <% end %> | 78 <% end %> |
78 <% end %> | 79 <% end %> |
OLD | NEW |