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: Removed unnecessary assignment Created March 13, 2014, 6:50 a.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,19 @@ 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 ^()(.*)$;
include /etc/nginx/fastcgi_params;
- fastcgi_param SCRIPT_NAME "";
- 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