[adrian at fedoraproject.org: [ansible] Re-enable /mirrormanager without slash at the end]

Adrian Reber adrian at lisas.de
Sun May 31 09:32:44 UTC 2015


This change still needs a playbook to be run. If this change is correct
it would be great if someone could run the playbook. Thanks.

		Adrian

----- Forwarded message from Adrian Reber <adrian at fedoraproject.org> -----

Date: Sun, 31 May 2015 09:30:09 +0000 (UTC)
From: Adrian Reber <adrian at fedoraproject.org>
To: sysadmin-members at fedoraproject.org
Subject: [ansible] Re-enable /mirrormanager without slash at the end

This is the public repository, do not commit sensitive
or confidential information here.
X-Git-Refname: refs/heads/master
X-Git-Oldrev: af9462caabbbbff1cb4736d6ffaec93338c2f7b8
X-Git-Newrev: 9a90bb869ff7982dc6c05c804d83f7444249fc52

commit 9a90bb869ff7982dc6c05c804d83f7444249fc52
Author: Adrian Reber <adrian at lisas.de>
Date:   Sun May 31 09:27:54 2015 +0000

    Re-enable /mirrormanager without slash at the end
    
    The mirrormanager application and the publiclist re-write used to work
    without a slash at the end. Re-enable /mirrormanager without a slash at
    the end of the URL.

 roles/varnish/files/proxy.vcl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/roles/varnish/files/proxy.vcl b/roles/varnish/files/proxy.vcl
index ed8333b..788b717 100644
--- a/roles/varnish/files/proxy.vcl
+++ b/roles/varnish/files/proxy.vcl
@@ -181,7 +181,7 @@ sub vcl_recv {
             set req.url = regsub(req.url, "\?.*", "");
         }
     }
-    if (req.url ~ "^/mirrormanager/") {
+    if (req.url ~ "^/mirrormanager") {
         set req.backend_hint = mirrormanager;
         if (req.url ~ "^/mirrormanager/static/") {
             unset req.http.cookie;

----- End forwarded message -----


More information about the infrastructure mailing list