Since updating our server on December 2, 2026, from Enhance 12.26.6 to 12.29.1 and OpenLiteSpeed 1.9.4 to 1.9.5, we are experiencing HTTPS redirect issues with websites behind our NetBird reverse proxy.
Environment
- Enhance: 12.29.1
- OpenLiteSpeed: 1.9.5-3+noble
- orchd: 12.29.1
- Reverse proxy: NetBird, TLS termination at the proxy
- Backend connection: HTTP to Enhance on port 80
- The original HTTPS protocol is forwarded using
X-Forwarded-Proto: https.
Problem
Our public websites (www.example.com) and webmail hostname mail.example.com is no longer accessible.
The generated OpenLiteSpeed vhost configuration contains this redirect:
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://mail.example.com/$1 [R=301,L]
Because TLS is terminated at the reverse proxy, OpenLiteSpeed receives the backend request over HTTP. The generated rule does not take X-Forwarded-Proto: https into account and redirects the request to the exact same HTTPS URL, resulting in a redirect loop.
Tests and findings
- Direct HTTPS access to the Enhance backend (
100.99.89.80:443) returns HTTP 200 for both mail.example.com and www.example.com.
- Roundcube and PHP are working correctly when accessed directly over HTTPS.
- Public access to
mail.example.com returns HTTP 301 with Location: https://mail.example.com/, causing a redirect loop.
- The redirect rule is present in many generated
mail.* vhost configurations.
- The rules are located in Enhance-managed OpenLiteSpeed vhost files and are likely regenerated by Enhance. Manual modifications would therefore not be a reliable permanent solution.
- We have not changed our NetBird reverse proxy configuration.
We have observed a similar forwarded-protocol issue with WordPress websites, where WordPress did not recognize HTTPS behind the reverse proxy until X-Forwarded-Proto was handled explicitly.
Questions
- Did Enhance 12.29.1 or OpenLiteSpeed 1.9.5 introduce a change affecting HTTPS detection or generated vhost rewrite rules?
- Is OpenLiteSpeed behind a TLS-terminating reverse proxy officially supported?
- What is the recommended and update-safe way to configure Enhance/OpenLiteSpeed to respect
X-Forwarded-Proto: https from a trusted reverse proxy?
- Is there a supported global configuration or custom vhost override mechanism that survives vhost regeneration and Enhance updates?
- Should the generated mail-vhost redirect rule be adjusted by Enhance to account for the forwarded protocol?
We would appreciate confirmation of whether this is a known regression and guidance on the supported permanent fix.
We have not manually modified the generated OpenLiteSpeed vhost configurations.