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

--- Comment #9 from Antoine "hashar" Musso <[email protected]> ---
The login.wikimedia.beta.wmflabs.org virtualhost definition has:

    RewriteEngine On
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^/(.*)$ https://login.wikimedia.beta.wmflabs.org/$1 [R=301,L]

Varnish would do a http query which redirect to https:

$ curl -s -i -x 127.0.0.1:80 http://login.wikimedia.beta.wmflabs.org/|grep
Location
Location: https://login.wikimedia.beta.wmflabs.org/


If it has set the X-Fowarded-Proto: https we get the main page:

$ curl -s -i -H 'X-Forwarded-Proto: https' -x 127.0.0.1:80
http://login.wikimedia.beta.wmflabs.org/|grep Location
Location: https://login.wikimedia.beta.wmflabs.org/wiki/Main_Page


After talking with mark, varnish consider both queries (with and without
X-Forwarded-Proto) as the same cached content.  This is because Apache does not
send a Vary: X-Forwarded-Proto header.  So we need to fix up our Apache
configuration.

-- 
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