From 76cf6ef15d42e9c50653296edb83b682878b8ecf Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 10 Nov 2015 11:57:09 +0100 Subject: [PATCH] Let's server mdapi at /mdapi --- playbooks/include/proxies-reverseproxy.yml | 2 +- roles/haproxy/templates/haproxy.cfg.stg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index eb15663514..92e21acc0b 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -263,7 +263,7 @@ - role: httpd/reverseproxy website: apps.fedoraproject.org destname: mdapi - remotepath: / + remotepath: /mdapi localpath: /mdapi proxyurl: http://localhost:10043 when: env == "staging" diff --git a/roles/haproxy/templates/haproxy.cfg.stg b/roles/haproxy/templates/haproxy.cfg.stg index 8dd1ba8e0d..464ec16cb0 100644 --- a/roles/haproxy/templates/haproxy.cfg.stg +++ b/roles/haproxy/templates/haproxy.cfg.stg @@ -194,7 +194,7 @@ listen statscache 0.0.0.0:10042 listen mdapi 0.0.0.0:10043 balance hdr(appserver) server mdapi01 mdapi01:80 check inter 10s rise 1 fall 2 - option httpchk GET / + option httpchk GET /mdapi # Apache doesn't handle the initial connection here like the other proxy # entries. This proxy also doesn't use the http mode like the others.