LEFT | RIGHT |
1 # Puppet: <%= @title %> | 1 # Puppet: <%= @title %> |
2 | 2 |
3 root /var/www/<%= @domain %>; | 3 root /var/www/<%= @domain %>; |
4 index index index.html; | 4 index index; |
5 default_type text/html; | 5 default_type text/html; |
6 charset utf-8; | 6 charset utf-8; |
7 | 7 |
8 set $index_page "index"; | 8 set $index_page "index"; |
9 | 9 |
10 <% if @custom_config %> | 10 <% if @custom_config %> |
11 <%= @custom_config %> | 11 <%= @custom_config %> |
12 <% end %> | 12 <% end %> |
13 | 13 |
14 location / | 14 location / |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 location ~ ^/([a-z][a-z])(/.+) | 71 location ~ ^/([a-z][a-z])(/.+) |
72 { | 72 { |
73 if (!-e "$document_root$uri") | 73 if (!-e "$document_root$uri") |
74 { | 74 { |
75 # if there is no language translation, try canonical page for default langua
ge | 75 # if there is no language translation, try canonical page for default langua
ge |
76 # example /es/page -> /page | 76 # example /es/page -> /page |
77 rewrite ^/([a-z][a-z])(/.+) $2 redirect; | 77 rewrite ^/([a-z][a-z])(/.+) $2 redirect; |
78 } | 78 } |
79 } | 79 } |
LEFT | RIGHT |