| OLD | NEW |
| 1 location <%= @location_base %>/ | 1 location <%= @location_base %>/ |
| 2 { | 2 { |
| 3 |
| 4 location <%= @location_base %>/subjects |
| 5 { |
| 6 if ($arg_q = "") |
| 7 { |
| 8 return 403; |
| 9 } |
| 10 |
| 11 if ($arg_limit = "") |
| 12 { |
| 13 return 403; |
| 14 } |
| 15 } |
| 16 |
| 3 fastcgi_pass unix:/tmp/<%= @name %>-fastcgi.sock; | 17 fastcgi_pass unix:/tmp/<%= @name %>-fastcgi.sock; |
| 4 fastcgi_split_path_info ^(<%= @location_base %>)(.*)$; | 18 fastcgi_split_path_info ^(<%= @location_base %>)(.*)$; |
| 5 include /etc/nginx/fastcgi_params; | 19 include /etc/nginx/fastcgi_params; |
| 6 fastcgi_param SCRIPT_NAME $fastcgi_script_name; | 20 fastcgi_param SCRIPT_NAME $fastcgi_script_name; |
| 7 fastcgi_param PATH_INFO $fastcgi_path_info; | 21 fastcgi_param PATH_INFO $fastcgi_path_info; |
| 8 client_max_body_size 20m; | 22 client_max_body_size 20m; |
| 9 } | 23 } |
| 10 | 24 |
| 11 location <%= @location_base %>/chrome/ | 25 location <%= @location_base %>/chrome/ |
| 12 { | 26 { |
| 13 alias /home/trac/htdocs-<%= @name %>/htdocs/; | 27 alias /home/trac/htdocs-<%= @name %>/htdocs/; |
| 14 } | 28 } |
| 15 | 29 |
| 16 location <%= @location_base %>/robots.txt | 30 location <%= @location_base %>/robots.txt |
| 17 { | 31 { |
| 18 alias /home/trac/robots.txt; | 32 alias /home/trac/robots.txt; |
| 19 } | 33 } |
| 20 | 34 |
| OLD | NEW |