Re: Problems using custom error files with HTTP/2

2023-08-08 Thread Nick Wood
Hi Alex, On 2.6, with H2 enabled, there are certain error pages that HAProxy can't serve over HTTP/2. For example, if all the back ends are unavailable it should return an error page, but it just returns an invalid H2 response. To reproduce, just set up a minimal config with an H2

Re: Problems using custom error files with HTTP/2

2023-08-07 Thread Aleksandar Lazic
Hi. On 2023-08-07 (Mo.) 18:35, Nick Wood wrote: Hello all, I'm not sure if anything further happened with this, but after upgrading from 2.6 to 2.8.1, custom pages are now broken by default over HTTP/2. Please can you specific more deeper what you mean with "broken by default". What does

Re: Problems using custom error files with HTTP/2

2023-08-07 Thread Nick Wood
Hello all, I'm not sure if anything further happened with this, but after upgrading from 2.6 to 2.8.1, custom pages are now broken by default over HTTP/2. Has HTTP/2 support been enabled by default? If so how would one turn it off so we don't have to downgrade back to v2.6? Thanks,

Re: Problems using custom error files with HTTP/2

2023-04-17 Thread Aleksandar Lazic
On 17.04.23 15:08, Willy Tarreau wrote: On Mon, Apr 17, 2023 at 03:04:05PM +0200, Lukas Tribus wrote: On Sat, 15 Apr 2023 at 23:08, Willy Tarreau wrote: On Sat, Apr 15, 2023 at 10:59:42PM +0200, Willy Tarreau wrote: Hi Nick, On Sat, Apr 15, 2023 at 09:44:32PM +0100, Nick Wood wrote:

Re: Problems using custom error files with HTTP/2

2023-04-17 Thread Willy Tarreau
On Mon, Apr 17, 2023 at 03:04:05PM +0200, Lukas Tribus wrote: > On Sat, 15 Apr 2023 at 23:08, Willy Tarreau wrote: > > > > On Sat, Apr 15, 2023 at 10:59:42PM +0200, Willy Tarreau wrote: > > > Hi Nick, > > > > > > On Sat, Apr 15, 2023 at 09:44:32PM +0100, Nick Wood wrote: > > > > And here is my

Re: Problems using custom error files with HTTP/2

2023-04-17 Thread Lukas Tribus
On Sat, 15 Apr 2023 at 23:08, Willy Tarreau wrote: > > On Sat, Apr 15, 2023 at 10:59:42PM +0200, Willy Tarreau wrote: > > Hi Nick, > > > > On Sat, Apr 15, 2023 at 09:44:32PM +0100, Nick Wood wrote: > > > And here is my configuration - I've slimmed it down to the absolute > > > minimum > > > to

Re: Problems using custom error files with HTTP/2

2023-04-17 Thread Nick Wood
Hi Willy, On 15/04/2023 22:08, Willy Tarreau wrote: And indeed, this issue appeared with this commit in 1.9-dev10 4 years ago: 746fb772f ("MEDIUM: mux_h2: Always set CS_FL_NOT_FIRST for new conn_streams.") So it makes h2 behave like the second and more H1 requests which are silent about

Re: Problems using custom error files with HTTP/2

2023-04-15 Thread Willy Tarreau
On Sat, Apr 15, 2023 at 10:59:42PM +0200, Willy Tarreau wrote: > Hi Nick, > > On Sat, Apr 15, 2023 at 09:44:32PM +0100, Nick Wood wrote: > > And here is my configuration - I've slimmed it down to the absolute minimum > > to reproduce the problem: > > > > If the back end is down, the custom

Re: Problems using custom error files with HTTP/2

2023-04-15 Thread Willy Tarreau
Hi Nick, On Sat, Apr 15, 2023 at 09:44:32PM +0100, Nick Wood wrote: > And here is my configuration - I've slimmed it down to the absolute minimum > to reproduce the problem: > > If the back end is down, the custom 503.http page should be served. > > This works on HTTP/1.1 but not over HTTP/2:

Re: Problems using custom error files with HTTP/2

2023-04-15 Thread Nick Wood
Hi Alex, On 15/04/2023 20:32, Aleksandar Lazic wrote: Please can you share the haproxy version `haproxy -vv`. What is your configuration? Include as much configuration as possible, including global and default sections. Replace confidential data like domain names and IP addresses.

Re: Problems using custom error files with HTTP/2

2023-04-15 Thread Aleksandar Lazic
Hi Nic, On 15.04.23 19:35, Nick Wood wrote: Hello all, I have recently enabled HTTP/2 on our HAProxy server by adding the following to the bind line: alpn h2,http/1.1 Everything appears to be working fine, apart from our custom error pages. Rather than serving the custom page as

Problems using custom error files with HTTP/2

2023-04-15 Thread Nick Wood
Hello all, I have recently enabled HTTP/2 on our HAProxy server by adding the following to the bind line: alpn h2,http/1.1 Everything appears to be working fine, apart from our custom error pages. Rather than serving the custom page as before, browsers just report an error. In Chrome