https://bugzilla.wikimedia.org/show_bug.cgi?id=51700

--- Comment #1 from Antoine "hashar" Musso <[email protected]> ---
Doing a curl query to the HTTPS URL

 curl -I "https://login.wikimedia.beta.wmflabs.org/?`date +%s`"

varnishncsa let you dump any request header using the syntax %{X}-i %{X}o where
X is the name of the header and 'i' stand for request header and 'o' for a
response header.

I got:

On the frontend:

 varnishncsa -n frontend -F 'Proto in: %{X-Forwarded-Proto}i out:
%{X-Forwarded-Proto}o "%r" %s %b"'
 Proto in: https out: - "HEAD
http://login.wikimedia.beta.wmflabs.org/?1374484265 HTTP/1.0" 301 0"
 Proto in: https out: - "HEAD
http://login.wikimedia.beta.wmflabs.org/?1374484267 HTTP/1.0" 301 0"

On the backend:

 varnishncsa -F 'Proto in: %{X-Forwarded-Proto}i out: %{X-Forwarded-Proto}o
"%r" %s %b"'
 Proto in: http out: - "GET http://login.wikimedia.beta.wmflabs.org/?1374484331
HTTP/1.1" 301 260"

Looking at the remote, the backend hits  127.0.0.1 so that would be put back in
varnish text again hence a looping.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to