Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/trac/templates/site.erb

Issue 5719138018263040: Better way to set PATH_INFO variable for Trac (Closed)
Patch Set: Removed unnecessary assignment Created March 13, 2014, 6:50 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 server { 1 server {
2 server_name <%= @domain %>; 2 server_name <%= @domain %>;
3 3
4 <% if is_default %> 4 <% if is_default %>
5 listen 80 default_server; 5 listen 80 default_server;
6 listen [::]:80 default_server; 6 listen [::]:80 default_server;
7 <% else %> 7 <% else %>
8 listen 80; 8 listen 80;
9 listen [::]:80; 9 listen [::]:80;
10 <% end %> 10 <% end %>
(...skipping 14 matching lines...) Expand all
25 listen [::]:443 ssl; 25 listen [::]:443 ssl;
26 <% end %> 26 <% end %>
27 27
28 ssl_certificate adblockplus.org_sslcert.pem; 28 ssl_certificate adblockplus.org_sslcert.pem;
29 ssl_certificate_key adblockplus.org_sslcert.key; 29 ssl_certificate_key adblockplus.org_sslcert.key;
30 30
31 add_header Strict-Transport-Security max-age=31536000; 31 add_header Strict-Transport-Security max-age=31536000;
32 32
33 location / 33 location /
34 { 34 {
35 set $path_info $request_uri;
36 if ($path_info ~ "(.*?)\?")
37 {
38 set $path_info $1;
39 }
40
41 fastcgi_pass unix:/tmp/trac-fastcgi.sock; 35 fastcgi_pass unix:/tmp/trac-fastcgi.sock;
36 fastcgi_split_path_info ^()(.*)$;
42 include /etc/nginx/fastcgi_params; 37 include /etc/nginx/fastcgi_params;
43 fastcgi_param SCRIPT_NAME ""; 38 fastcgi_param PATH_INFO $fastcgi_path_info;
44 fastcgi_param PATH_INFO $path_info;
45 } 39 }
46 40
47 location /chrome/ 41 location /chrome/
48 { 42 {
49 alias /home/trac/htdocs/htdocs/; 43 alias /home/trac/htdocs/htdocs/;
50 } 44 }
51 } 45 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld