Score:0

Apache2 rewrite HTTP redirects

bh flag

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

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.