Skip to content

[BUG] Regression in 1.6.10rc4 when rewriting 404 error pages (and others?) #3490

@jojolll

Description

@jojolll

What happened?

When BunkerWeb rewrites an error page (tested only with 404), the page that should be served appears to be looked up from the wrong location and is no longer found.

This is very easy to reproduce from the BunkerWeb UI if the UI is not mounted on / and instead uses a URI suffix/path. Bad URI = 404.

It also happens when the 404 is caught from the reverse proxy.

How to reproduce?

There is no issue with version 1.6.10rc3, but after upgrading to 1.6.10rc4 the problem appears.
Rolling back to 1.6.10rc3 fixes the issue.
Upgrading again to 1.6.10rc4 causes it again.

Configuration file(s) (yaml or .env)

N/A

Relevant log output

2026/04/30 22:53:31 [error] 5975#5975: *551 open() "/nowhere/home" failed (2: No such file or directory), client: 192.0.2.10, server: example.invalid, request: "GET /home HTTP/2.0", host: "example.invalid"

Client side : always ERR_HTTP2_PROTOCOL_ERROR
BW side with reverse proxy intecepted error : None

BunkerWeb version

1.6.10rc4

What integration are you using?

Linux

Linux distribution (if applicable)

No response

Removed private data

  • I have removed all private data from the configuration file and the logs

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions