On Sat, Nov 18, 2023 at 03:20:51PM +0100, Christoph Kukulies wrote:
> I would like to see more precisely what requests arrive at haproxy at which 
> port and how they are routed to the backend server (port).
> 
> At the moment I don't see any connects in /var/log/haproxy/haproxy.log
> 
> and at the backend server (tomcat9) I see the following (I extended the 
> logformat by the port #):
> 
> 127.0.0.1 80 - - [18/Nov/2023:14:52:39 +0100] "GET / HTTP/1.1" 404 5679
> 127.0.0.1 80 - - [18/Nov/2023:14:53:53 +0100] "GET /other/path HTTP/1.1" 200 
> 2584
> 
> Wondering why I see port #80 rather than 8080 or 8082 according  to my 
> haproxy.cfg:
> 
> 
> backend website-static
>     server www.mydomain.org 127.0.0.1:8080
> 
> backend website
>     
>      # http-request set-path /opencms%[path]
>     server www.mydomain.org 127.0.0.1:8080
> backend cmssite
>      
>     #  http-request set-path /opencms%[path]
>     server cms.mydomain.org 127.0.0.1:8082

You didn't share the most important part, your log-format string!
Everything is in it.

Willy

Reply via email to