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

Unified Diff: modules/web/templates/adblockplus.org.conf.erb

Issue 4757418294640640: Issue 2494 - Make sure to send X-Forwarded-For header when proxying content (Closed)
Patch Set: Created May 13, 2015, 1:29 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/web/templates/adblockplus.org.conf.erb
===================================================================
--- a/modules/web/templates/adblockplus.org.conf.erb
+++ b/modules/web/templates/adblockplus.org.conf.erb
@@ -211,12 +211,13 @@ location /jsdoc
location /403.html
{
try_files $uri @proxied;
}
location @proxied
{
proxy_pass https://server_16.adblockplus.org;
proxy_set_header Host adblockplus.org;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect https://adblockplus.org/ https://$host/;
sub_filter_once off;
sub_filter https://adblockplus.org/ https://$host/;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld