I'm trying to use calibre web as a Docker container and have it exposed via Apache2 acting as a reverse proxy. I already have a Nextcloud installation under example.com/nextcloud, and I would like to be able to access the Docker container with calibre web via example.com/calibre-web. To do so so, I added the following at the end of my 000-default-le-ssl.conf
file (I have a Let's Encrypt cretificate managed via certbot):
ProxyPass /calibre-web http://127.0.0.1:8083
ProxyPassReverse /calibre-web http://127.0.0.1:8083
The problem I'm facing is that when I connect to /calibre-web
, calibre web tries to redirect me to /admin/dbconfig
. But when my browser tries to go to example.com/admin/dbconfig
it gets a 404 error, as the correct URL would be example.com/calibre-web/admin/dbconfig
.
How can I make Apache2 rewrite calibre web's HTTP redirects so that they have /calibre-web
prepended to them?
Thank you for your help,
GTP95