I want to install Nginx in addition to Apache2 on Bullseye.
As there are a lot of virtuals on Apache2, I prefer not to change the Apache ports (80 and 443) and switch Nginx to port 8080 and 8443.
Everything works, however, I need to add the port to access the sites under Nginx:
https://example.org:8443.
How to get Apache to forward example.org address to Nginx?
I think of using a reverse proxy under Apache:
<VirtualHost *:80>
ServerName example.org
Permanent redirect / https://example.org
</VirtualHost>
<VirtualHost *:443>
ServerName example.org
ProxyRequests Off
ProxyPreserveHost On
SSLProxyEngine on
<Location/>
ProxyPass https://127.0.0.1:8443/
ProxyPassReverse /
</Location>
But, it does not work.
The checkup writes : "Your browser was not able to load an iframe using the origin specified as httpSafeOrigin"
Have-you got an idea ? Is there an other way to redirect example.org to Nginx ?
Thanks