OLD | NEW |
(Empty) | |
| 1 server { |
| 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 %> |
| 10 |
| 11 location / |
| 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/; |
| 28 } |
| 29 } |
OLD | NEW |