Merci pour ce lien qui m'a permis de comprendre mon erreur
Du coup, la bonne condition à appliquer est if { path_beg /application }
global
daemon
maxconn 256
log localhost user info
spread-checks 10
defaults
mode http
stats enable
default-server inter 30s fastinter 5s
log global
option httplog
timeout connect 5s
timeout client 50s
timeout server 50s
timeout tunnel 1h
listen stats :8280
stats uri /
stats show-legends
stats refresh 10s
stats realm Haproxy Statistics
stats auth xxxxxx:xxxxx
frontend http
bind :5080
option http-server-close
option forwardfor
default_backend web
frontend https
bind :5443 ssl crt /usr/local/haproxy/var/crt/default.pem
option http-server-close
option forwardfor
rspirep ^Location: http://(.*)$ Location: https://1
use_backend dsm if { path_beg /dsm }
use_backend sabnzbd if { path_beg /sab }
use_backend sickbeard if { path_beg /sick }
use_backend couchpotatoserver if { path_beg /couch }
use_backend maraschino if { path_beg /ma }
default_backend couchpotatoserver
backend web
server web localhost: check
backend dsm
server dsm localhost:5000 check
backend sabnzbd
server sabnzbd localhost:8080 check
backend sickbeard
server sickbeard localhost:8081 check
backend couchpotatoserver
server couchpotatoserver localhost:5050 check
backend maraschino
server maraschino localhost:8260 check
backend haproxy
server haproxy localhost:8280 check
Voici mes tests et résultat sachant que mon backend par défaut est CouchPotato:
https://mondomain.fr/sab --> http://localhost:8080/sabnzbd avec une page vierge Internet Explorer ne peut pas afficher cette page web
https://mondomain.fr/sick --> Page 404 pendant une fraction de seconde --> https://mondomain.fr avec l'interface Couchpotato connecter
https://mondomain.fr/couch --> https://mondomain.fr/#couch avec l'interface Couchpotato connecter
https://mondomain.fr/mar --> https://mondomain.fr/mar avec Page 404
https://mondomain.fr/dsm --> https://mondomain.fr/dsm avec une page du serveur web du syno : Désolé, la page que vous recherchez est introuvable
Je ne comprends pas comment il est possible d'avoir autant de différence avec le même code La seule application qui fonctionne est toujours celle que je définie par défaut.
Donc je dois pas être loin de la bonne config.
Quelqu'un à une idée ?