Open jani4865 opened 7 months ago
Hello,
I can't reproduce your problem. Could you provide logs? That would be difficult to determine what's going on without them. Also you should try to test using a curl command to reproduce.
Also your configuration looks a little bit old fashioned, once you determined the problem you should switch to using ssl_fc_sni
directly in a HTTP frontend with an SSL bind, instead of using an intermediate TCP frontend with req_ssl_sni
Regards,
Any update about this?
I get following logs
Nov 5 11:33:56 haproxy[48]: 114.143.238.10:53768 [05/Nov/2024:11:33:50.871] proxy_services_frontend~ proxy_services_frontend/<NOSRV> -1/-1/+5950 +174 LR 7/3/0/0/0 0/0
Expected logs are
Nov 5 10:23:31 haproxy[47]: 114.143.238.10:37141 [05/Nov/2024:10:23:31.528] https-in report/report1 2/0/+1 +0 -- 27/25/1/1/0 0/0
This is intermittent
@wlallemand Please let me know if you need any other additional info
You seem to be analyzing logs from different frontends, all your requests are supposed to get through "https-in" with your configuration, but since this is a TCP frontend there will always be a log for a connection, but a connection could contain multiple requests, and you won't be seeing this in your logs.
It seem like you are using "option logasap" and "option tcplog" but this is not in your configuration snippet.
I recommend that you set "option httplog" or "option httpslog" in your http/https frontend to have more details in your log, so you could see the request and check if the portal_api_tag
ACL matched
Since you are choosing a backend for a connection and not for a request, because of mode tcp
, if the TCP connection is kept, every other request will be sent to the same backend. You should check in your logs if you have the same IP:port source multiple time in your HTTP "proxy_services_frontend".
Detailed Description of the Problem
When I hit report-boutique.example.com intermittenly I am being redirected with 307 to boutique.example.com, Few times it works correctly and I get content from report-boutique.example.com
Issue is with haproxy version 2.8.5 where as same configuration working with 2.6.16
Expected Behavior
At any time req_ssl_sni (report-boutique.example.com) should use backend report
Steps to Reproduce the Behavior
Just use haproxy tag with version and 2.8.5 and use same configuration given below (Please use new browser/incognito window every time )
Do you have any idea what may have caused this?
Not at all
Do you have an idea how to solve the issue?
We Wish
What is your configuration?
Output of
haproxy -vv
Last Outputs and Backtraces
No response
Additional Information
No response