OLD | NEW |
1 location / | 1 location / |
2 { | 2 { |
3 root /home/hg/web; | 3 root /home/hg/web; |
4 rewrite ^/customization/(.*) /abpcustomization/$1 permanent; | 4 rewrite ^/customization/(.*) /abpcustomization/$1 permanent; |
5 fastcgi_pass unix:/var/run/hgweb.sock; | 5 fastcgi_pass unix:/var/run/hgweb.sock; |
6 include fastcgi_params; | 6 include fastcgi_params; |
7 fastcgi_param SCRIPT_NAME ""; | 7 fastcgi_param SCRIPT_NAME ""; |
8 } | 8 } |
9 | 9 |
10 location ~ /[^/]+/(atom|rss)-log | 10 location ~ /[^/]+/(atom|rss)-log |
11 { | 11 { |
12 root /home/hg/web; | 12 root /home/hg/web; |
13 fastcgi_pass unix:/var/run/hgweb.sock; | 13 fastcgi_pass unix:/var/run/hgweb.sock; |
14 include fastcgi_params; | 14 include fastcgi_params; |
15 fastcgi_param SCRIPT_NAME ""; | 15 fastcgi_param SCRIPT_NAME ""; |
16 fastcgi_cache hgwebfeed; | 16 fastcgi_cache hgwebfeed; |
17 fastcgi_cache_key $uri; | 17 fastcgi_cache_key $uri; |
18 fastcgi_cache_lock on; | 18 fastcgi_cache_lock on; |
19 fastcgi_cache_valid 200 5m; | 19 fastcgi_cache_valid 200 5m; |
20 } | 20 } |
21 | 21 |
22 location /static/ | 22 location /static/ |
23 { | 23 { |
24 root /usr/share/mercurial/templates; | 24 root <%= @templates %>; |
25 } | 25 } |
26 | 26 |
27 location /robots.txt | 27 location /robots.txt |
28 { | 28 { |
29 root /home/hg/web; | 29 root /home/hg/web; |
30 } | 30 } |
OLD | NEW |