LEFT | RIGHT |
1 server { | 1 server { |
2 server_name <%= @domain %>; | 2 server_name <%= @domain %>; |
| 3 <% if is_default %> |
| 4 listen 80 default_server; |
| 5 listen [::]:80 default_server; |
| 6 <% else %> |
| 7 listen 80; |
| 8 listen [::]:80; |
| 9 <% end %> |
3 | 10 |
4 location / { | 11 location / |
5 proxy_pass http://localhost:8088/; | 12 { |
| 13 set $path_info $request_uri; |
| 14 if ($path_info ~ "(.*?)\?") |
| 15 { |
| 16 set $path_info $1; |
| 17 } |
| 18 |
| 19 fastcgi_pass unix:/tmp/trac-fastcgi.sock; |
| 20 include /etc/nginx/fastcgi_params; |
| 21 fastcgi_param SCRIPT_NAME ""; |
| 22 fastcgi_param PATH_INFO $path_info; |
| 23 } |
| 24 |
| 25 location /chrome/ |
| 26 { |
| 27 alias /home/trac/htdocs/htdocs/; |
6 } | 28 } |
7 } | 29 } |
LEFT | RIGHT |