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

Unified Diff: modules/trac/templates/site.erb

Issue 5719138018263040: Better way to set PATH_INFO variable for Trac (Closed)
Patch Set: Created March 11, 2014, 12:07 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/trac/templates/site.erb
===================================================================
--- a/modules/trac/templates/site.erb
+++ b/modules/trac/templates/site.erb
@@ -27,25 +27,20 @@ server {
ssl_certificate adblockplus.org_sslcert.pem;
ssl_certificate_key adblockplus.org_sslcert.key;
add_header Strict-Transport-Security max-age=31536000;
location /
{
- set $path_info $request_uri;
- if ($path_info ~ "(.*?)\?")
- {
- set $path_info $1;
- }
-
fastcgi_pass unix:/tmp/trac-fastcgi.sock;
+ fastcgi_split_path_info ^()(.*)$;
Felix Dahlke 2014/03/13 00:37:53 I assume you tested it, but based on the docs it s
Wladimir Palant 2014/03/13 06:50:41 Not sure where you've got it from, the docs quite
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_NAME "";
Felix Dahlke 2014/03/13 00:37:53 Is this still necessary? Seems to me as if fastcgi
Wladimir Palant 2014/03/13 06:50:41 You are right, this is unnecessary now.
- fastcgi_param PATH_INFO $path_info;
+ fastcgi_param PATH_INFO $fastcgi_path_info;
}
location /chrome/
{
alias /home/trac/htdocs/htdocs/;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld