| OLD | NEW |
| 1 expires 1d; | |
| 2 | |
| 3 root /var/www/<%= vhost %>; | 1 root /var/www/<%= vhost %>; |
| 4 index index; | 2 index index; |
| 5 default_type text/html; | 3 default_type text/html; |
| 6 charset utf-8; | 4 charset utf-8; |
| 7 | 5 |
| 8 set $index_page "index"; | 6 set $index_page "index"; |
| 9 | 7 |
| 10 <% if @custom_config %> | 8 <% if @custom_config %> |
| 11 <%= custom_config %> | 9 <%= custom_config %> |
| 12 <% end %> | 10 <% end %> |
| 13 | 11 |
| 14 location / | 12 location / |
| 15 { | 13 { |
| 14 expires 1d; |
| 15 |
| 16 # Match Accept-Language header against available languages | 16 # Match Accept-Language header against available languages |
| 17 | 17 |
| 18 set $preferredLang en; | 18 set $preferredLang en; |
| 19 set $preferredRegion ""; | 19 set $preferredRegion ""; |
| 20 if ($http_accept_language ~ ^(\w\w)\b) | 20 if ($http_accept_language ~ ^(\w\w)\b) |
| 21 { | 21 { |
| 22 set $preferredLang $1; | 22 set $preferredLang $1; |
| 23 } | 23 } |
| 24 if ($http_accept_language ~ ^\w\w-(\w\w)\b) | 24 if ($http_accept_language ~ ^\w\w-(\w\w)\b) |
| 25 { | 25 { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 50 | 50 |
| 51 <% if @multiplexer_locations %> | 51 <% if @multiplexer_locations %> |
| 52 <% @multiplexer_locations.each do |location| %> | 52 <% @multiplexer_locations.each do |location| %> |
| 53 location <%= location %> | 53 location <%= location %> |
| 54 { | 54 { |
| 55 fastcgi_pass unix:/tmp/multiplexer-fastcgi.sock; | 55 fastcgi_pass unix:/tmp/multiplexer-fastcgi.sock; |
| 56 include /etc/nginx/fastcgi_params; | 56 include /etc/nginx/fastcgi_params; |
| 57 } | 57 } |
| 58 <% end %> | 58 <% end %> |
| 59 <% end %> | 59 <% end %> |
| OLD | NEW |