Hello
J'ai un souci avec HAProxy, j'essaie de l'utiliser pour faire reverse-proxy des applications DSM et site web mais si je ne met pas l'application DSM en default, j'ai une page blanche si j'essaie d'ouvrir n'importe laquelle des 3 applications. Pourtant, je n'aimerais mieux pas ouvrir le DSM sur le 443, je préfère utiliser un port non standard pour le DSM, ou dans le cas ou il le faut, en tous cas ne pas le mettre par défaut !
Arrivez-vous me dire ce que je foire ? Merci bien !
global
daemon
maxconn 256
log localhost user info
spread-checks 10
tune.ssl.default-dh-param 2048
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
frontend https
bind :5443 ssl crt /usr/local/haproxy/var/crt/default.pem ciphers AESGCM+AES128:AES128:AESGCM+AES256:AES256:RSA+RC4+SHA:!RSA+AES:!CAMELLIA:!aECDH:!3DES:!DSS:!PSK:!SRP:!aNULL no-sslv3
option http-server-close
option forwardfor
rspirep ^Location: http://(.*)$ Location: https://1
rspadd Strict-Transport-Security: max-age=31536000; includeSubDomains
use_backend audio if { path_beg /audio }
use_backend download if { path_beg /download }
use_backend file if { path_beg /file }
default_backend web
backend audio
reqrep ^([^ :]*) /audio/(.*) 1 /2
server audio localhost:8800 check
backend download
reqrep ^([^ :]*) /download/(.*) 1 /2
server download localhost:8000 check
backend file
reqrep ^([^ :]*) /file/(.*) 1 /2
server file localhost:7000 check
backend web
server web localhost: check