On February 14, 2017 at 10:46:05, [email protected] 
([email protected]<mailto:[email protected]>) wrote:
Hi,

I’ve got an issue with Haproxy conf need help please !!

See my haproxy.cfg

frontend rest-in
    bind *:8089 ssl crt /etc/ssl/*****
    reqadd X-Forwarded-Proto:\ https

    acl host_rest_services          hdr(Host) -i 
test-rest.net<https://urldefense.proofpoint.com/v2/url?u=http-3A__test-2Drest.net&d=DwQFAg&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=BZ2S09kcMRiJIUh57WZsng&m=552Ig6nEOMH9wg2ks1WhxrWEHEMdG8cMbcbCkjD_Gog&s=UVyuxV46M6Snh0R8nhltBxZLBuVcrVsIcTLAaVp7nQg&e=>

    use_backend rest_services if host_rest_services

backend rest_services
     server shstand 10.0.0.2:8089 ssl verify none

see my log in /var/log/haproxy.log

[14/Feb/2017:16:02:36.860] rest-in~ rest-in/<NOSRV> -1/-1/-1/-1/35 503 212 - - 
SC-- 0/0/0/0/0 0/0 "GET / HTTP/1.1"


It would appear that your acl was not matched.  It was up to `rest-in` to 
determine how to route the request, and since there's no other backend to 
choose from, there was no place for the request to go.  I would advise that you 
validate your acl is configured as you desired.


It would also be a good idea to setup a `default backend` as a way to help test 
where your requests are going.


Why my “use_backend” is not working ? I’ve got nothing between my haproxy and 
my backend (NO proxy, no firewall, etc )

Thanks for your help
Regards,


_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations 
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce 
message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages 
electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou 
falsifie. Merci.

This message and its attachments may contain confidential or privileged 
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete 
this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been 
modified, changed or falsified.
Thank you.

Reply via email to